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

customer uplode review

Developing
POST
http://localhost:3000/review

Request

Header Params

Body Params multipart/form-dataRequired

Responses

🟢200Success
application/json
Bodyapplication/json

Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'http://localhost:3000/review' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NSwicm9sZSI6ImN1c3RvbWVyIiwiaWF0IjoxNzc2MTk0ODM3fQ.pqHdAlDOwIJ0TQ7pH_DbiqM6gReE1PDZCR09nENDjQs' \
--form 'wisataId="2"' \
--form 'rating="4"' \
--form 'komentar="test boring"' \
--form 'image=@"C:\\Users\\ASUS\\Downloads\\WhatsApp Image 2026-04-04 at 11.52.08.jpeg"'
Response Response Example
{"id":14,"wisataId":2,"customerId":5,"nama":"exsa agdi","rating":4,"komentar":"test boring","image":"/uploads/1776199837207-746562648.jpeg","createdAt":"2026-04-14T20:50:37.213Z"}
Previous
admin konfirmasi booking customer sesuai ID
Next
semua review tampil admin/customer
Built with