A sample demo for ApiDoc
http://api.acme.com/{version}/customers/{customer_id}
| Parameter | Type | Optional | Description |
|---|---|---|---|
| version | Version | Api version | |
| customer_id | integer | Customer identifier |
| { | |
| "Customer": Customer | |
| } |
| Code | Message | Description |
|---|---|---|
| 404 | Customer not found | Customer does not exists |
http://api.acme.com/{version}/customers
| Parameter | Type | Optional | Description |
|---|---|---|---|
| version | Version | Api version |
| { | |
| "Customers": [ | |
| { | |
| "id": integer, | Object identifier |
| "name": string, | Name of the object |
| "next": string, | Link to the next element |
| "previous": string | Link to the previous element |
| } | |
| ] | |
| } |
http://api.acme.com/{version}/customers/{customer_id}/users
| Parameter | Type | Optional | Description |
|---|---|---|---|
| version | Version | Api version | |
| customer_id | integer | Customer identifier |
| { | |
| "id": integer | User identifier |
| } |
| { | |
| "Customer": Customer | |
| } |
| Code | Message | Description |
|---|---|---|
| 403 | Forbidden | User can not be adding to this customer |
| 404 | Customer not found | Customer does not exists |
http://api.acme.com/{version}/users
| Parameter | Type | Optional | Description |
|---|---|---|---|
| version | Version | Api version |
| { | |
| "user": User | |
| } |
| { | |
| "User": User | |
| } |
| Code | Message | Description |
|---|---|---|
| 403 | Forbidden | User can not be adding to this customer |
| 404 | Customer not found | Customer does not exists |
http://api.acme.com/{version}/users/{user_id}
| Parameter | Type | Optional | Description |
|---|---|---|---|
| version | Version | Api version | |
| user_id | integer | user identifier |
| { | |
| "User": User | |
| } |
| Code | Message | Description |
|---|---|---|
| 404 | User not found | User does not exists |
http://api.acme.com/{version}/users
| Parameter | Type | Optional | Description |
|---|---|---|---|
| version | Version | Api version |
| { | |
| "Users": [ | |
| { | |
| "id": integer, | Object identifier |
| "name": string, | Name of the object |
| "next": string, | Link to the next element |
| "previous": string | Link to the previous element |
| } | |
| ] | |
| } |
| { | |
| "id": integer, | Customer identifier |
| "name": string, | Name of the customer |
| "users": [ | List of users |
| User | |
| ] | |
| } |
| { | |
| "email": string, | Email address of the user |
| "id": integer, | User identifier |
| "name": string, | Name of the user |
| "phone": string | User's phone number |
| } |
| string |
VN.N
V\d+\.\d+