Seluruh API dapat diakses melalui domain bebasdah.theokaitou.my.id
dengan Endpoint berikut:
- /movies
- Method: GET
- Description: Mengambil daftar film
- Parameter: - Contoh Command :
curl -X GET http://bebasdah.theokaitou.my.id/movies- /chat
- Method: POST
- Description: Mengirim pesan ke chatroom
- Request Body:
- movie_id: ID dari film
- user_id: ID pengguna
- chat: pesan yang dikirim
Contoh Command :
curl -X POST http://bebasdah.theokaitou.my.id/chat \
-H "Content-Type: application/json" \
-d '{
"movie_id": 1,
"user_id": 1,
"chat": "filem bagus!"
}'