Skip to content

Commit

Permalink
[#3] Update Region Documentation based on 2nd review
Browse files Browse the repository at this point in the history
  • Loading branch information
msyuniarto committed Dec 4, 2020
1 parent 359fdf2 commit 0a0fa74
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions doc/regions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | application/json
Email | [email protected]

### Request Payloads
Name | Type | Example Value
Expand All @@ -36,8 +36,7 @@ name | string | Auto Moro Dewe
### Response Payloads
HTTP Code | Status | Description
--- | --- | ---
400 | Bad Request | Bad request payload
404 | Not Found | Region not found in database
400 | Bad Request | Bad request payload
500 | Internal Server Error | some un-handle error in server
201 | Created | Created
```
Expand Down Expand Up @@ -225,7 +224,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 @@ -283,7 +282,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 @@ -495,7 +494,7 @@ Key | Value
--- | ---
Content-Type | *
Accept | application/json
Email | application/json
Email | [email protected]

### Response Payloads
HTTP Code | Status | Description
Expand All @@ -504,25 +503,8 @@ HTTP Code | Status | Description
500 | Internal Server Error | some un-handle error in server
204 | No content | No content

```
{
"status_code": "CDC-204",
"status_message": "No content",
"data": null
}
```

### Scenario Test

#### Case : Positive Case

Response HTTP Status Code : 204

Response Payload :
```
{
"status_code": "CDC-204",
"status_message": "No content",
"data": null
}
```
Response HTTP Status Code : 204

0 comments on commit 0a0fa74

Please sign in to comment.