[Solved] CSE383-a rest server that implements API calls

$25

File Name: CSE383-a_rest_server_that_implements_API_calls.zip
File Size: 433.32 KB

SKU: [Solved] CSE383-a rest server that implements API calls Category: Tag:
5/5 - (1 vote)

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 1/2 12/22/2018 11-28 Assignment Web 2.0 Assignment In Class

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:

status: string OK or FAIL

Details:

Call this rest1128.php

Create a series of curl tests and call it rest1128tests.sh add at least 4 tests (mostly for error handling)

Do this work in your git working copy and make sure the code is submitted to the gitlab repository. Submit links to your restserver, your test code, and to your gitlab in canvas.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CSE383-a rest server that implements API calls
$25