1. proyek cpmapp
PBS-23E
  • proyek cpmapp
    • register customer
      POST
    • login customer
      POST
    • login admin
      POST
    • admin update data wisata
      PATCH
    • TEST DATA WISATA ADMIN
      GET
    • UPDATE DATA
      PUT
    • hapus data booking untuk admin dan customer
      DELETE
    • booking akun untuk customer
      POST
    • admin buat data wisata
      POST
    • admin konfirmasi booking customer sesuai ID
      PATCH
    • customer uplode review
      POST
    • semua review tampil admin/customer
      GET
    • admin lihat data booking
      GET
    • admin hapus data wisata sesuai ID
      DELETE
  1. proyek cpmapp

admin konfirmasi booking customer sesuai ID

Developing
PATCH
http://localhost:3000/booking/4

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'http://localhost:3000/booking/4' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwicm9sZSI6ImFkbWluIiwiaWF0IjoxNzc2MTk2NDk2fQ.aiQuBm6GjNc4N-ZlTK8NLMt5ie43qUJO9ydBMObCVEE' \
--header 'Content-Type: application/json' \
--data '{
  "status": "confirmed"
}'
Response Response Example
{"id":20,"wisataId":2,"customerId":5,"nama":"Tokisaki","noHp":"08123456789","jumlahTiket":1,"status":"confirmed","createdAt":"2026-04-14T19:54:10.035Z"}
Previous
admin buat data wisata
Next
customer uplode review
Built with