An experimental crud with vueQuery (a library from tanstack)
Clone the project
git clone https://github.com/afandilham/coverpost.git
Go to the project directory
cd coverpost
Install dependencies
npm install
Start the server
npm run dev
Request :
- Method : POST
- Endpoint :
/api/bio
- Header :
- Content-Type: application/json
- Accept: application/json
- Body/Response :
{
"id": "string, unique",
"name": "string",
"email": "string, unique",
"phone": "string",
"gender": "string"
}
Request :
- Method : get
- Endpoint :
/api/bio
- Header :
- Content-Type: application/json
- Accept: application/json
- Response :
{
"id": "string, unique",
"name": "string",
"email": "string, unique",
"phone": "string",
"gender": "string"
}
Request :
- Method : get
- Endpoint :
/api/bio/{bio_id}
- Header :
- Accept: application/json
- Response :
{
"id": "string, unique",
"name": "string",
"email": "string, unique",
"phone": "string",
"gender": "string"
}
Request :
- Method : PUT
- Endpoint :
/api/bio/{id_product}
- Header :
- Content-Type: application/json
- Accept: application/json
- Body :
{
"name": "string",
"email": "string, unique",
"phone": "string",
"gender": "string"
}
Response :
{
"id": "string, unique",
"name": "string",
"email": "string, unique",
"phone": "string",
"gender": "string"
}
Request :
- Method : DELETE
- Endpoint :
/api/bio/{id_product}
- Header :
- Accept: application/json
Response :
{
"id": "string, unique",
"name": "string",
"email": "string, unique",
"phone": "string",
"gender": "string"
}