Movie worker
Manage movie worker#
Get movie orders#
Used to get reservations for the movies you applied as a worker or emergency worker
URL: /api/v1/cinema/worker
Method: GET
Auth required: Yes
Feature required: CinemaFeature
Success response#
Code: 200
Content example
Apply for movie worker#
Used to apply for worker on a specific movie
URL: /api/v1/cinema/worker/{movieId}
Method: POST
Auth required: Yes
Feature required: CinemaFeature
Success response#
Condition: Movie exists, movie not shown already and there is not already another worker
Code: 200
Content example
Error response#
Movie not found#
Condition: Movie was not found
Code: 404
Content example
Worker already applied#
Condition: There is already a worker for this movie
Code: 400
Content example
Movie already shown#
Condition: Movie was already shown
Code: 400
Content example
Sign out for worker#
Used to apply for worker on a specific movie
URL: /api/v1/cinema/worker/{movieId}
Method: DELETE
Auth required: Yes
Feature required: CinemaFeature
Success response#
Condition: Movie exists, movie not shown already and you are the worker
Code: 200
Content example
Error response#
Movie not found#
Condition: Movie was not found
Code: 404
Content example
No worker found for this movie#
Condition: There is no worker for this movie
Code: 400
Content example
You are not the worker for this movie#
Condition: You are not the worker for this movie
Code: 400
Content example
Movie already shown#
Condition: Movie was already shown
Code: 400
Content example
Apply for movie emergency worker#
Used to apply for worker on a specific movie
URL: /api/v1/cinema/emergencyWorker/{movieId}
Method: POST
Auth required: Yes
Feature required: CinemaFeature
Success response#
Condition: Movie exists, movie not shown already and there is not already another emergency worker
Code: 200
Content example
Error response#
Movie not found#
Condition: Movie was not found
Code: 404
Content example
Worker already applied#
Condition: There is already a worker for this movie
Code: 400
Content example
Movie already shown#
Condition: Movie was already shown
Code: 400
Content example
Sign out for emergency worker#
Used to apply for worker on a specific movie
URL: /api/v1/cinema/emergencyWorker/{movieId}
Method: DELETE
Auth required: Yes
Feature required: CinemaFeature
Success response#
Condition: Movie exists, movie not shown already and you are the emergency worker
Code: 200
Content example
Error response#
Movie not found#
Condition: Movie was not found
Code: 404
Content example
No worker found for this movie#
Condition: There is no emergency worker for this movie
Code: 400
Content example
You are not the worker for this movie#
Condition: You are not the emergency worker for this movie
Code: 400
Content example
Movie already shown#
Condition: Movie was already shown
Code: 400
Content example