Closed jsunthon closed 4 years ago
got the bare-bones code to work and receive an HTTP code 200 based on the HTTP request for all users http://vr-rehab-cloud-service-usc-dev.us-east-2.elasticbeanstalk.com/v1/user/all
Had a meeting today and looks like this is 90% done. @jvelasco2319 reported he just has to parse the id
values and pass them to the API calls automatically.
Also need to be executing the while loop that gets the new position events and makes the API call to create it.
Steps:
1) Make REST API call to the GET /v1/user?username=jsunthon endpoint to see if the user with the given username exists, then if it does exist, you'll get back:
If you receive HTTP status
404
, it means it doesn't exist, so call the POST /v1/user endpoint to create the user with that username with the following request JSON body:and then you'll get back:
2) Make REST API call to the GET /v1/device?name=james_device endpoint to see if a device with the given name exists.
If it exists, you'll get back:
If you receive HTTP status
404
, it means it doesn't exist, so call the POST /v1/device endpoint to create the device with that name with the following request JSON body:and you'll then get back:
3) Make a REST API call to create a game session to the POST /v1/game-session endpoint with the following request JSON body:
and you'll then get back:
4) Make REST API call to create the position event to the POST /v1/position-event endpoint , for every position event that is generated, with the following request body: