Question: Assignment # 3 Using APIs to Communicate 8 0 Points Problem Using the code provided as a template, write a program in C or C

Assignment #3
Using APIs to Communicate
80 Points
Problem
Using the code provided as a template, write a program in C or C++ that can communicate with the provided API running in a singularity container on the localhost. The APIs are defined below in the API Definitions section. The code provided will work to send and receive data via PUT and GET on the /initialize API. Your first task is to understand how this code works and then replicate it for the PUT and GET on the /modify API. You must then alter your CC++ program to perform the following actions (keep in mind this will require editing the functions provided to you):
Print your Name to standard out (stdout) on its own line.
Print your R# to standard out (stdout) on its own line.
Send the integer 3360 to /initialize via PUT.
Send the integer 4 to /modify via PUT.
Retrieve the data in /initialize via a GET command and store the value as an integer.
a. Print this value to standard out (stdout) on its own line.
Retrieve the data in /modify via a GET command and store the value as an integer.
a. Print this value to standard out (stdout) on its own line.
Send the value received from / modify (step #6) to /initialize via PUT.
Send the value received from /initialize (step #5) to /modify via PUT.
Retrieve the data in /initialize via a GET command and store the value as an integer.
a. Print this value to standard out (stdout) on its own line.
Retrieve the data in /modify via a GET command and store the value as an integer.
a. Print this value to standard out (stdout) on its own line.
 Assignment #3 Using APIs to Communicate 80 Points Problem Using the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!