-
Notifications
You must be signed in to change notification settings - Fork 11
API Parameters
Mahmoud A. Zaid edited this page Mar 23, 2019
·
1 revision
- Parameters are options you can pass with the endpoint to influence the response.
- Header parameters:
- Parameters included in the request header, usually related to authorization.
- Path parameters:
- Parameters within the path of the endpoint, before the query string (?). These are usually set off within curly braces.
eg:
http://dummy.restapiexample.com/employee/{id}
- Query string parameters:
- Parameters in the query string of the endpoint, after the ?.
eg:
/surfreport/{beachId}?days=3&units=metric&time=1400
- Request body parameters:
- Parameters included in the request body. Usually submitted as JSON.
eg:
{"name":"test","salary":"123","age":"23","id":"719"}
Mahmoud A. Zaid
- Introduction
- HTTP Methods
- HTTP Request
- API Parameters
- HTTP Response
- HTTP Status Code
- Methods Examples
- Idempotence