title: Example-Collection toc: true date: 2019-04-16 02:02:47 tags:
This example could show you what's the postdown could do.
GET http://0.0.0.0:8000/get/example?example-key=example-value
You should write the detail about this API.
It's markdown supported.
Query
Key Value Description example-key example-value example-description Header
Key Value Description example-header example-header-value example-description
Example: This's a right way to use.
> > GET http://0.0.0.0:8000/get/example?example-key=successful > > ``` > > > > **Request** > > > > > > > > **Query** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-key|successful|example-description| > > > > > > **Header** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-header|example-header-value|example-description| > > > > > > > ---------------- > > > > **Response** > > > > > > > > **Body** > > > > > > ``` > > > { > > > "result": "successful" > > > } > > > ``` > > > > > > > **Example: This's the worry way to use.** > > > > > ``` > > GET http://0.0.0.0:8000/get/example?example-key=unsuccessful > > ``` > > > > **Request** > > > > > > > > **Query** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-key|unsuccessful|example-description| > > > > > > **Header** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-header|example-header-value|example-description| > > > > > > > ---------------- > > > > **Response** > > > > > > > > **Body** > > > > > > ``` > > > { > > > "result": "unsuccessful" > > > } > > > ``` > > > > > > ---------------- ## An example API with POSTPOST http://0.0.0.0:8000/post/example?example-key=example-value
### An example API. You should write the detail about this API. **It's markdown supported.** ---------------- ### Request > > **Query** > > |Key|Value|Description| > |---|---|---| > |example-key|example-value|example-description| > > **Header** > > |Key|Value|Description| > |---|---|---| > |example-header|example-header-value|example-description| > > **Body** > > |Key|Value|Type|Description| > |---|---|---|---| > |example-key|example-value|text|example-description| > ### Examples: > > **Example: Successful Request** > > > > > ``` > > POST http://0.0.0.0:8000/post/example?example-key=example-value > > ``` > > > > **Request** > > > > > > > > **Query** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-key|example-value|example-description| > > > > > > **Header** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-header|example-header-value|example-description| > > > > > > **Body** > > > > > > |Key|Value|Type|Description| > > > |---|---|---|---| > > > |example-key|successful|text|example-description| > > > > > > > ---------------- > > > > **Response** > > > > > > > > **Body** > > > > > > ``` > > > { > > > "result": [ > > > "successful" > > > ] > > > } > > > ``` > > > > > > > **Example: Unsuccessful Requests** > > > > > ``` > > POST http://0.0.0.0:8000/post/example?example-key=example-value > > ``` > > > > **Request** > > > > > > > > **Query** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-key|example-value|example-description| > > > > > > **Header** > > > > > > |Key|Value|Description| > > > |---|---|---| > > > |example-header|example-header-value|example-description| > > > > > > **Body** > > > > > > |Key|Value|Type|Description| > > > |---|---|---|---| > > > |example-key|unsuccessful|text|example-description| > > > > > > > ---------------- > > > > **Response** > > > > > > > > **Body** > > > > > > ``` > > > { > > > "result": [ > > > "unsuccessful" > > > ] > > > } > > > ``` > > > > > > ---------------- ## An example API with JSONPOST http://0.0.0.0:8000/json/example?example-key=example-value ```
You should write the detail about this API.
It's markdown supported.
Query
Key Value Description example-key example-value example-description Header
Key Value Description example-key example-value example-description Content-Type application/json Body
{ "example-key": "example-value" }
Example: Successful Request
POST http://0.0.0.0:8000/json/example?example-key=example-valueRequest
Query
Key Value Description example-key example-value example-description Header
Key Value Description example-key example-value example-description Content-Type application/json Body
{ "example-key": "successful" }
Response
Body
{ "result": "successful" }Example: Unsuccessful Request
POST http://0.0.0.0:8000/json/example?example-key=example-valueRequest
Query
Key Value Description example-key example-value example-description Header
Key Value Description example-key example-value example-description Content-Type application/json Body
{ "example-key": "unsuccessful" }
Response
Body
{ "result": "unsuccessful" }
Built with Postdown.
Author: Titor