Starting from:

$30

CSE383 rest1128 Solved

Create a rest server that implements the following API calls. Mine

(http://ceclnx01.cec.miamioh.edu/~campbest/cse383/1128/rest1128.php) is available for you to try:

Here is a test suite    (http://ceclnx01.cec.miamioh.edu/~campbest/cse383/1128/test.txt) that should exercise the rest calls.

table in the cse383 database:

KeyValue

pk ­ primary key, int keyName ­ tinyText value ­ tinyText timestamp ­ timestamp

url: rest1128.php/v1/keys method: get returns the name of all keyNames from the table KeyValue json_in: none json_out: status: string "OK" or "FAIL" keys[] array of keyValues

get value for a key url: rest1128.php/v1/keys/:NAME method: get returns the value for the key with the given name from the table KeyValue json_in: none json_out:

status: string "OK" or "FAIL" value: string

add keyvalue url: rest1128.php/v1/keys method: post

https://miamioh.instructure.com/courses/80211/assignments/873008?module_item_id=1445998          
sets the value for the given key to the given value. Deletes any existing key with the given name.

json_in: keyName: string value: string

json_out:

More products