Request :
- Method : POST
- Endpoint :
/api/provinces
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"province_name": "string"
}
Response :
{
"province_name": "string",
"createdAt": "date",
"updatedAt": "date",
"id": "string, unique"
}
Request :
- Method : GET
- Endpoint :
/api/provinces
- Header :
- Accept: application/json
Response :
{
"province_name": "string",
"createdAt": "date",
"updatedAt": "date",
"id": "string, unique"
}
Request :
- Method : GET
- Endpoint :
/api/provinces/{id}
- Header :
- Accept: application/json
Response :
{
"province_name": "string",
"createdAt": "date",
"updatedAt": "date",
"id": "string, unique"
}
Request :
- Method : PUT
- Endpoint :
/api/provinces/{id}
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"province_name": "string"
}
Response :
{
"message": "string"
}
Request :
- Method : DELETE
- Endpoint :
/api/province/{id}
- Header :
- Accept: application/json
Response :
{
"message": "string"
}
Request :
- Method : POST
- Endpoint :
/api/cities
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"province": "string, unique",
"city_name": "string"
}
Response :
{
"province": "string, unique",
"city_name": "string",
"createdAt": "date",
"updatedAt": "date"
}
Request :
- Method : GET
- Endpoint :
/api/cities
- Header :
- Accept: application/json
Response :
{
"code": "number",
"status": "string",
"data": {
"id-kota": "string, unique",
"id-prov": "string",
"name": "string",
"createdAt": "date",
"updatedAt": "date"
}
}
Request :
- Method : PUT
- Endpoint :
/api/lova/{name_provinsi}/{id_kota}
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"name": "string"
}
Response :
{
"code": "number",
"status": "string",
"data": {
"id": "string, unique",
"name": "string",
"createdAt": "date",
"updatedAt": "date"
}
}
Request :
- Method : GET
- Endpoint :
/api/lova/{name_provinsi}
- Header :
- Accept: application/json
- Query Param :
- size : number,
- page : number
Response :
{
"code": "number",
"status": "string",
"data": [
{
"id": "string, unique",
"name": "string",
"createdAt": "date",
"updatedAt": "date"
},
{
"id": "string, unique",
"name": "string",
"createdAt": "date",
"updatedAt": "date"
}
]
}
Request :
- Method : DELETE
- Endpoint :
/api/lova/{name_provinsi}/{id_kota}
- Header :
- Accept: application/json
Response :
{
"code": "number",
"status": "string"
}
Request :
- Method : POST
- Endpoint :
/api/lova/provinsi/kota-kab
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"id-lokasi": "string, unique",
"id-kota": "string",
"title": "string",
"date-start": "date",
"date-end": "date",
"time-start": "date",
"time-end": "date",
"registration": "string",
"agerange": "string",
"decription": "string",
"link": "string",
"address": "string",
"is-free": "boolean",
"is-valid": "boolean",
"createdAt": "date",
"updatedAt": "date"
}
Response :
{
"code": "number",
"status": "string",
"data": {
"id-lokasi": "string, unique",
"id-kota": "string",
"title": "string",
"date-start": "date",
"date-end": "date",
"time-start": "date",
"time-end": "date",
"registration": "string",
"agerange": "string",
"decription": "string",
"link": "string",
"address": "string",
"is-free": "boolean",
"is-valid": "boolean",
"createdAt": "date",
"updatedAt": "date"
}
}
Request :
- Method : GET
- Endpoint :
/api/lova/{name_provinsi}/{id_kota}/{id_lokasi}
- Header :
- Accept: application/json
Response :
{
"code": "number",
"status": "string",
"data": {
"id-kota": "string, unique",
"id-lokasi": "string, unique",
"title": "string",
"date-start": "date",
"date-end": "date",
"time-start": "date",
"time-end": "date",
"registration": "string",
"agerange": "string",
"decription": "string",
"link": "string",
"address": "string",
"is-free": "boolean",
"is-valid": "boolean",
"createdAt": "date",
"updatedAt": "date"
}
}
Request :
- Method : PUT
- Endpoint :
/api/lova/{name_provinsi}/{id_kota}/{id_lokasi}
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"title": "string",
"date-start": "date",
"date-end": "date",
"time-start": "date",
"time-end": "date",
"registration": "string",
"agerange": "string",
"decription": "string",
"link": "string",
"address": "string",
"is-free": "boolean",
"is-valid": "boolean"
}
Response :
{
"code": "number",
"status": "string",
"data": {
"id-lokasi": "string, unique",
"id-kota": "string",
"title": "string",
"date-start": "date",
"date-end": "date",
"time-start": "date",
"time-end": "date",
"registration": "string",
"agerange": "string",
"decription": "string",
"link": "string",
"address": "string",
"is-free": "boolean",
"is-valid": "boolean",
"createdAt": "date",
"updatedAt": "date"
}
}
Request :
- Method : GET
- Endpoint :
/api/lova/{name_provinsi}/{name_kota}
- Header :
- Accept: application/json
- Query Param :
- size : number,
- page : number
Response :
{
"code": "number",
"status": "string",
"data": [
{
"id-lokasi": "string, unique",
"title": "string",
"date-start": "date",
"date-end": "date",
"time-start": "date",
"time-end": "date",
"registration": "string",
"agerange": "string",
"decription": "string",
"link": "string",
"address": "string",
"is-free": "boolean",
"is-valid": "boolean",
"createdAt": "date",
"updatedAt": "date"
},
{
"id-lokasi": "string, unique",
"title": "string",
"date-start": "date",
"date-end": "date",
"time-start": "date",
"time-end": "date",
"registration": "string",
"agerange": "string",
"decription": "string",
"link": "string",
"address": "string",
"is-free": "boolean",
"is-valid": "boolean",
"createdAt": "date",
"updatedAt": "date"
}
]
}
Request :
- Method : DELETE
- Endpoint :
/api/lova/{name_provinsi}/{id_kota}/{id_lokasi}
- Header :
- Accept: application/json
Response :
{
"code": "number",
"status": "string"
}