Question: You must now write a simple web server application that stores and retrieves a seed value (default O). This program will then run on

You must now write a simple web server application that stores and

You must now write a simple web server application that stores and retrieves a seed value (default O). This program will then run on each EC2 server. Specifically, your server should maintain the seed number and allow clients to access and update it. The application handles the following two HTTP REST requests: HTTP POST "/" with JSON body {"num": 100) where 100 can be any integer. Your program should update the seed value with the given number. HTTP GET "/" Your program should return the integer seed value in string format. The response body for the above case will be: "100"

Step by Step Solution

3.31 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Creating a simple web server application that can handle HTTP POST and GET requests to store and ret... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!