Movie worker
#
Manage movie worker#
Get movie ordersUsed 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 responseCode: 200
Content example
#
Apply for movie workerUsed to apply for worker on a specific movie
URL: /api/v1/cinema/worker/{movieId}
Method: POST
Auth required: Yes
Feature required: CinemaFeature
#
Success responseCondition: Movie exists, movie not shown already and there is not already another worker
Code: 200
Content example
#
Error response#
Movie not foundCondition: Movie was not found
Code: 404
Content example
#
Worker already appliedCondition: There is already a worker for this movie
Code: 400
Content example
#
Movie already shownCondition: Movie was already shown
Code: 400
Content example
#
Sign out for workerUsed to apply for worker on a specific movie
URL: /api/v1/cinema/worker/{movieId}
Method: DELETE
Auth required: Yes
Feature required: CinemaFeature
#
Success responseCondition: Movie exists, movie not shown already and you are the worker
Code: 200
Content example
#
Error response#
Movie not foundCondition: Movie was not found
Code: 404
Content example
#
No worker found for this movieCondition: There is no worker for this movie
Code: 400
Content example
#
You are not the worker for this movieCondition: You are not the worker for this movie
Code: 400
Content example
#
Movie already shownCondition: Movie was already shown
Code: 400
Content example
#
Apply for movie emergency workerUsed to apply for worker on a specific movie
URL: /api/v1/cinema/emergencyWorker/{movieId}
Method: POST
Auth required: Yes
Feature required: CinemaFeature
#
Success responseCondition: Movie exists, movie not shown already and there is not already another emergency worker
Code: 200
Content example
#
Error response#
Movie not foundCondition: Movie was not found
Code: 404
Content example
#
Worker already appliedCondition: There is already a worker for this movie
Code: 400
Content example
#
Movie already shownCondition: Movie was already shown
Code: 400
Content example
#
Sign out for emergency workerUsed to apply for worker on a specific movie
URL: /api/v1/cinema/emergencyWorker/{movieId}
Method: DELETE
Auth required: Yes
Feature required: CinemaFeature
#
Success responseCondition: Movie exists, movie not shown already and you are the emergency worker
Code: 200
Content example
#
Error response#
Movie not foundCondition: Movie was not found
Code: 404
Content example
#
No worker found for this movieCondition: There is no emergency worker for this movie
Code: 400
Content example
#
You are not the worker for this movieCondition: You are not the emergency worker for this movie
Code: 400
Content example
#
Movie already shownCondition: Movie was already shown
Code: 400
Content example