Request :
- Method :
POST
- Endpoint :
api/register
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"email" : "string",
"password" : "string",
"name" : "string"
}
Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "id user, uniq",
"name" : "string",
"token" : "string",
"created_at" : "date",
"update_at" : "date"
}
}
Request :
- Method :
POST
- Endpoint :
api/login
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"email" : "string",
"password" : "string"
}
Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "id user, uniq",
"name" : "string",
"token" : "string",
"created_at" : "date",
"update_at" : "date"
}
}
NOTE : To access this endpoint use the Authorization
Request :
- Method :
POST
- Endpoint :
api/showcase
- Header :
- Content-Type: application/json
- Accept: application/json
- Authorization: Bearer {{token}}
- Body :
{
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string"
}
Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
}
}
Request :
- Method :
GET
- Endpoint :
api/showcase/{id_showcase}
- Header :
- Accept: application/json
- Authorization: Bearer {{token}}
Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
}
}
Request :
- Method :
PUT
- Endpoint :
api/showcase/{id_showcase}
- Header :
- Content-Type: application/json
- Accept: application/json
- Authorization: Bearer {{token}}
- Body :
{
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string"
}
Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
}
}
Request :
- Method :
GET
- Endpoint :
api/showcase
- Header :
- Authorization: Bearer {{token}}
- Accept: application/json
- Query Param :
- size : number
- page : number
Response :
{
"code" : "number",
"status" : "string",
"data" : [
{
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
},
{
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
}
]
}
Request :
- Method :
DELETE
- Endpoint :
api/showcase/{id_showcase}
- Header :
- Authorization: Bearer {{token}}
- Accept: application/json
Response :
{
"code" : "number",
"status" : "string"
}
NOTE : To access this endpoint not use the Authorization
Request :
- Method :
GET
- Endpoint :
api/showcase
- Header :
- Accept: application/json
- Query Param :
- size : number
- page : number
Response :
{
"code" : "number",
"status" : "string",
"data" : [
{
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
},
{
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
}
]
}
Request :
- Method :
GET
- Endpoint :
api/showcase/{id_showcase}
- Header :
- Accept: application/json
Response :
{
"code" : "number",
"status" : "string",
"data" : {
"id" : "id product, uniq",
"title" : "string",
"image" : "string",
"description" : "string",
"category_id" : "string",
"created_at" : "date",
"update_at" : "date"
}
}