-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#3] Update Region Documentation based on 2nd review
- Loading branch information
1 parent
359fdf2
commit 0a0fa74
Showing
1 changed file
with
6 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
``` | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -495,7 +494,7 @@ Key | Value | |
--- | --- | ||
Content-Type | * | ||
Accept | application/json | ||
Email | application/json | ||
Email | [email protected] | ||
|
||
### Response Payloads | ||
HTTP Code | Status | Description | ||
|
@@ -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 |