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 #
Using APIs to Communicate
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 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 to initialize via PUT.
Send the integer 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 # to initialize via PUT.
Send the value received from initialize step # 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
