Skip to content

Commit

Permalink
[#5] improvement review documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmadGozali19 committed Dec 8, 2020
1 parent c10244e commit 8e63f33
Showing 1 changed file with 6 additions and 40 deletions.
46 changes: 6 additions & 40 deletions doc/companies.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,39 +534,6 @@ HTTP Code | Status | Description

#### Case : Negative Case 1

Request Payload : empty

Response HTTP Status Code : 400

Response Payload :
```
{
"status_code": "cdc-400",
"status_message": "id is required",
"data": null
}
```

#### Case : Negative Case 2

Request Payload :
```
{}
```

Response HTTP Status Code : 400

Response Payload :
```
{
"status_code": "cdc-400",
"status_message": "id with company_code, name, address, npwp and phone_num is required",
"data": null
}
```

#### Case : Negative Case 3

Request Payload
```
{
Expand All @@ -585,7 +552,7 @@ Response Payload
}
```

#### Case : Negative Case 4
#### Case : Negative Case 2

Request Payload
```
Expand All @@ -606,7 +573,7 @@ Response Payload
}
```

#### Case : Negative Case 5
#### Case : Negative Case 3

Request Payload
```
Expand All @@ -628,7 +595,7 @@ Response Payload
}
```

#### Case : Negative Case 6
#### Case : Negative Case 4

Request Payload
```
Expand All @@ -651,7 +618,7 @@ Response Payload
}
```

#### Case : Negative Case 7
#### Case : Negative Case 5

Request Payload
```
Expand All @@ -675,7 +642,7 @@ Response Payload
}
```

#### Case : Negative Case 8
#### Case : Negative Case 6

Request Payload
```
Expand All @@ -700,7 +667,7 @@ Response Payload
Request Payload :
```
{
"region_code": "TCC"
"company_code": "TCC"
}
```

Expand Down Expand Up @@ -869,7 +836,6 @@ Accept | application/json
### Response Payloads
HTTP Code | Status | Description
--- | --- | ---
400 | Bad Request | Bad request payload
404 | Not Found | Companies not found in database
500 | Internal Server Error | some un-handle error in server
204 | No Content | No Content
Expand Down

0 comments on commit 8e63f33

Please sign in to comment.