Skip to content

Latest commit

 

History

History
32 lines (16 loc) · 799 Bytes

README.md

File metadata and controls

32 lines (16 loc) · 799 Bytes

RESTful api with php

on localhost

go to localhost/php-A-Team-16/savejson to save json data

go to localhost/php-A-Team-16/api/randomstring to get your saved json data

http://apidevacc.herokuapp.com/savejson/

using postman

The name of the input field should be "json" and the value shouldbe the json data

To update existing saved json

endpoint

The URL of the json data/update e.g server.address/api/RSD1678Wa4gZQfE9FX502sdAC3/update

To delete existing saved json

endpoint

the URL of the json data/update e.g server.address/api/RSD1678Wa4gZQfE9FX502sdAC3/delete

after saving the json data a random string will be added to http://apidevacc.herokuapp.com/api/. This will be your access point to your json file example http://apidevacc.herokuapp.com/api/RSD1678Wa4gZQfE9FX502sdAC3