Professional Documents
Culture Documents
I. Overview
• What is API?
- API is the acronym for Application
Programming Interface.
Database
REQUEST
- URI
- METHOD: GET, POST, PUT, DELETE, …
- HEADER: Authorization, Content-Type, Cookies...
- PARAMETER: path param, query param, …
- CONTENT (Body): xml, json,..
RESPONSE
- HEADER: Status Code (200, 400, 404, 500,..)
- CONTENT (Body): xml, json, html, text
• Syntax: protocol:[//host-domain[:port]][/]path[?query][#fragment]
http://corptfsapp01:8080/tfs/DefaultCollection/inContact/QA/_workitems?id=29199&mode=edit#Steps
• Example:
• http://lgvn13415:8080/RESTful/rest/customers
• Protocol: http
• Host: lgvn13415
• Port: 8080
• Path: /RESTful/rest/customers
Parameters:
• Path Parameter
- It’s located inside the path and before the question mark
https://localhost/config/amptrac/devices/{deviceIP}/units?..
• Query Parameter
- It’s located after the question mark
/config/amptrac/devices?startAtIpAddress=123&retainData=true
• Body Parameter
- A XML/JSON/Text/HTML.. content
defines standards to be strictly followed does not define too much standards like SOAP
Back to Top