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

booking akun untuk customer

Developing
POST
http://localhost:3000/booking

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://localhost:3000/booking' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NSwicm9sZSI6ImN1c3RvbWVyIiwiaWF0IjoxNzc2MTk0ODM3fQ.pqHdAlDOwIJ0TQ7pH_DbiqM6gReE1PDZCR09nENDjQs' \
--header 'Content-Type: application/json' \
--data '{
  "wisataId": 2,
  "nama": "Tokisaki",
  "noHp": "08123456789",
  "jumlahTiket": 1
}'
Response Response Example
{}
Previous
hapus data booking untuk admin dan customer
Next
admin buat data wisata
Built with