CineHall-API
  1. sessions
CineHall-API
  • sessions
    • create_session
      POST
    • create_session_film
      POST
    • getall
      GET
    • filter_by_type
      GET
  • registration
    • register
      POST
    • login
      POST
    • logout
      POST
    • update_user
      POST
    • delete_user
      DELETE
  • film
    • delete_film
      DELETE
    • create_film
      POST
    • update_film
      PUT
    • getAll
      GET
  • rooms
    • create_room
      POST
    • show
      GET
  • reservations
    • Delete
      DELETE
    • Reservation
      POST
    • confirme_buy
      POST
    • modify_reservation
      GET
  • seats
    • create_room_seats
      POST
  • Dashboard
    • informations
      GET
    • taux d'ocupiration de seances
      GET
    • films classement
      GET
  • download_Ticket
    GET
  1. sessions

create_session_film

POST
/api/session

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/session' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "start_date": "2025-04-01 14:00:00",
    "end_date": "2025-04-01 16:00:00",
    "language": "English",
    "film": {
        "title": "Inception",
        "description": "A mind-bending thriller by Christopher Nolan.",
        "image": "https://example.com/inception.jpg",
        "duration": 148,
        "minimum_age": 13,
        "trailer_url": "https://www.youtube.com/watch?v=YoHD9XEInc0",
        "genre": "Sci-Fi",
        "user_id": 1
    },
    "room_id": 1
}'
Response Response Example
{}
Modified at 2025-03-25 21:38:15
Previous
create_session
Next
getall
Built with