Skip to content

Commit

Permalink
[#3] add region code must be unique and remove the last line that doe…
Browse files Browse the repository at this point in the history
…s not need comma
  • Loading branch information
msyuniarto committed Dec 4, 2020
1 parent 0a0fa74 commit 62c7c16
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doc/regions.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ HTTP Code | Status | Description
"company_code" : "BKNINTEL",
"company_id" : "d58edc03-360c-11eb-8f39-5600024efe02",
"created" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44"
}
}
```

### Logic

#### Validation
- region_code : required and not empty
- region_code : required, not empty, and must be unique
- name: required and not empty

### Scenario Test
Expand Down Expand Up @@ -209,7 +209,7 @@ Response Payload :
"company_code" : "BKNINTEL",
"company_id" : "d58edc03-360c-11eb-8f39-5600024efe02",
"created" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44"
}
}
```
Expand Down Expand Up @@ -244,7 +244,7 @@ HTTP Code | Status | Description
"company_code" : "BKNINTEL",
"company_id" : "d58edc03-360c-11eb-8f39-5600024efe02",
"created" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44"
}
}
```
Expand All @@ -267,7 +267,7 @@ Response Payload :
"company_code" : "BKNINTEL",
"company_id" : "d58edc03-360c-11eb-8f39-5600024efe02",
"created" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44"
}
}
```
Expand Down Expand Up @@ -322,15 +322,15 @@ HTTP Code | Status | Description
"company_code" : "BKNINTEL",
"company_id" : "d58edc03-360c-11eb-8f39-5600024efe02",
"created" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 09:03:44"
}
}
```

### Logic

#### Validation
- region_code : not empty and unique
- region_code : not empty and must be unique
- name : not empty

### Scenario Test
Expand Down Expand Up @@ -451,7 +451,7 @@ Response Payload :
"company_code" : "BKNINTEL",
"company_id" : "d58edc03-360c-11eb-8f39-5600024efe02",
"created" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 10:03:44",
"modified" : "2020-12-02 10:03:44"
}
}
```
Expand All @@ -461,7 +461,7 @@ Response Payload :
Request Payload :
```
{
"name": "Monggo Moro Tumbas",
"name": "Monggo Moro Tumbas"
}
```

Expand All @@ -479,7 +479,7 @@ Response Payload :
"company_code" : "BKNINTEL",
"company_id" : "d58edc03-360c-11eb-8f39-5600024efe02",
"created" : "2020-12-02 09:03:44",
"modified" : "2020-12-02 10:03:44",
"modified" : "2020-12-02 10:03:44"
}
}
```
Expand Down

0 comments on commit 62c7c16

Please sign in to comment.