Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.18 KB

File metadata and controls

39 lines (27 loc) · 1.18 KB

API LINK

Data formats

ID

Is an 12 byte string or 24 hexadecimal charctars EX: 5dae0381dcb3c23a1884ce0f

Phone number

Is a 9 digit number starting with 1 or 9 explicitly EX: 999808260

Routes

Get requsts

All phones

GET https://shrouded-sierra-93771.herokuapp.com/api/phone-book/

Single phone

GET https://shrouded-sierra-93771.herokuapp.com/api/phone-book/<search_tirm> search_tirm might be a phone number or an ID

Post requsts

Add new phone

POST https://shrouded-sierra-93771.herokuapp.com/api/phone-book/

Requist body must be an JSON opject in the format: { number: <phone_number> }

Put requsts

Update a phone number

PUT https://shrouded-sierra-93771.herokuapp.com/api/phone-book/<search_tirm>

search_tirm might be a phone number or an ID and the requist body must be an JSON opject in the format: { number: <phone_number> }

Delete requsts

Delete a phone number

DELET https://shrouded-sierra-93771.herokuapp.com/api/phone-book/<search_tirm>

search_tirm might be a phone number or an ID