Skip to content

Commit

Permalink
[#1] Update kios documentation based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
I Putu Mahendra Juniartha committed Dec 5, 2020
1 parent 7158f7b commit bf4c339
Showing 1 changed file with 10 additions and 25 deletions.
35 changes: 10 additions & 25 deletions doc/kios.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | application/json
Email | [email protected]

### Request Payloads
Name | Type | Example Value
Expand All @@ -48,8 +48,7 @@ HTTP Code | Status | Description
400 | Bad Request | bad request payload
404 | Not Found | branch not found in database
403 | Forbidden | branch_code is not owned by user login
500 | Internal Server Error | some un-handle error in server
200 | OK | OK
500 | Internal Server Error | some un-handle error in server
201 | Created | add data kios
```
{
Expand All @@ -61,8 +60,8 @@ HTTP Code | Status | Description

```
{
"status_code": "CDC-200",
"status_message": "OK",
"status_code": "CDC-201",
"status_message": "Created",
"data": {
"id": 1,
"kios_name": "mandala",
Expand Down Expand Up @@ -308,7 +307,7 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | application/json
Email | [email protected]

### Request Payloads
Name | Type | Example Value
Expand Down Expand Up @@ -599,7 +598,7 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | application/json
Email | [email protected]

### Response Payloads
HTTP Code | Status | Description
Expand Down Expand Up @@ -686,28 +685,20 @@ Key | Value
--- | ---
Content-Type | *
Accept | application/json
Email | application/json
Email | [email protected]

### Response Payloads
HTTP Code | Status | Description
--- | --- | ---
400 | Bad Request | Bad request payload
404 | Not Found | Kios not found in database
403 | Forbidden | id not owned by user login
500 | Internal Server Error | some un-handle error in server
200 | OK | OK
500 | Internal Server Error | some un-handle error in server
204 | No Content | Delete data kios
```
{
"status_code": "CDC-400",
"status_message": "Bad Request",
}
```

```
{
"status_code": "CDC-200",
"status_message": "OK",
"status_code": "CDC-204",
"status_message": "No Content",
}
```

Expand All @@ -732,10 +723,4 @@ Response Payload :

#### Case : Positive Case

```
{
"id": 1
}
```

response HTTP Status Code : 204

0 comments on commit bf4c339

Please sign in to comment.