Skip to content

Commit

Permalink
[#7] delete header email from API Groups Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
lukman134 committed Dec 16, 2020
1 parent b4f86b2 commit be87780
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions doc/groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | [email protected]

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

```
{
Expand All @@ -217,18 +215,9 @@ Email | [email protected]
### Response Payloads
HTTP Code | Status | Description
--- | --- | ---
403 | Forbidden | Groups is not owned by user login
404 | Not Found | Groups not found in database
500 | Internal Server Error | some un-handle error in server
200 | OK | OK
```
{
"status_code": "CDC-403",
"status_message": "Groups is not owned by user login",
"data": null
}
```

```
{
"status_code": "CDC-200",
Expand All @@ -246,30 +235,13 @@ HTTP Code | Status | Description
#### Endpoint Validation
- must be add parameter id
- id must exist in database
- must owned by user login

#### Validation
No Validation

### Scenario Test

#### Case : Negative Case 1

Groups is not owned by user login

Response HTTP Status Code : 403

Response Payload :
```
{
"status_code": "CDC-403",
"status_message": "Groups is not owned by user login",
"data": null
}
```

#### Case : Negative Case 2

- param id is not exist in database

Endpoint : /groups/100
Expand All @@ -296,7 +268,6 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | [email protected]

Request Payload :
```
Expand Down Expand Up @@ -381,7 +352,6 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | [email protected]

### Request Payloads
Name | Type | Example Value
Expand Down Expand Up @@ -443,51 +413,28 @@ Key | Value
--- | ---
Content-Type | *
Accept | application/json
Email | [email protected]

### Request Payloads
No request payloads

### Response Payloads
HTTP Code | Status | Description
--- | --- | ---
403 | Forbidden | Groups is not owned by user login
404 | Not Found | Groups not found in database
500 | Internal Server Error | some un-handle error in server
204 | No Content | Server request has succeeded but response is no content

```
{
"status_code": "CDC-403",
"status_message": "Groups is not owned by user login",
"data": null
}
```
Status 204 : No Response

### Logic
#### Endpoint Validation
- must be add parameter id
- id must exist in database
- must owned by user login

#### Validation
No Validation

#### Case : Negative Case 1
- group is not owned by user login
Response HTTP Status Code : 403

Response Payload :
```
{
"status_code": "cdc-403",
"status_message": "Groups is not owned by user login",
"data": null
}
```

#### Case : Negative Case 2
- param id is not exist in database

Endpoint : /groups/100
Expand All @@ -512,7 +459,6 @@ Key | Value
--- | ---
Content-Type | application/json
Accept | application/json
Email | [email protected]

Response HTTP Status Code : 204

Expand Down

0 comments on commit be87780

Please sign in to comment.