Request :
- Method : POST
- Endpoint : /api/merchant
- Header :
- Content-Type : application/json
- Accept : application/json
- Body :
{
"name" : "string",
"address" : "string",
"typeBranch": "string",
"latitude" : "string",
"longitude" : "string",
"admin" : "string"
}
- Response :
{
"code" : "string",
"message" : "string",
"data" :
{
"id" : "integer, auto-increment",
"name" : "string",
"address" : "string",
"typeBranch": "string",
"latitude" : "string",
"longitude" : "string",
"admin" : "string"
}
}
Request :
-
Method : GET
-
Endpoint : /api/merchant
-
Header :
- Content-Type : application/json
- Accept : application/json
-
Response :
{
"code" : "string",
"message" : "string",
"data" :
{
"id" : "integer, auto-increment",
"name" : "string",
"address" : "string",
"typeBranch": "string",
"latitude" : "string",
"longitude" : "string",
"admin" : "string"
}
}
Request :
- Method : PUT
- Endpoint : /api/merchant/{id}
- Header :
- Content-Type : application/json
- Accept : application/json
- Body :
{
"name" : "string",
"address" : "string",
"typeBranch": "string",
"latitude" : "string",
"longitude" : "string",
"admin" : "string"
}
- Response :
{
"code" : "string",
"message" : "string",
"data" :
{
"id" : "integer, auto-increment",
"name" : "string",
"address" : "string",
"typeBranch": "string",
"latitude" : "string",
"longitude" : "string",
"admin" : "string"
}
}
Request :
- Method : GET
- Endpoint : /pos/merchant
- Header :
- Accept : application/json
- Query Param :
- size : number
- page : number
- Response :
{
"code" : "string",
"message" : "string",
"data" : [
{
"id" : "integer, auto-increment",
"name" : "string",
"address" : "string",
"typeBranch": "string",
"latitude" : "string",
"longitude" : "string",
"admin" : "string"
},
{
"id" : "integer, auto-increment",
"name" : "string",
"address" : "string",
"typeBranch": "string",
"latitude" : "string",
"longitude" : "string",
"admin" : "string"
}
]
}
Request :
-
Method : DELETE
-
Endpoint : /pos/merchant
-
Header :
- Accept : application/json
-
Response :
{
"code" : "string",
"message" : "string"
}