The backend/API for movions
Request: | Response - created: | Response - bad request: |
---|---|---|
expects: { name: string, type: int } |
httpcode: 201 ✔️ | httpcode: 400 ❌ |
method: POST | returns: company | returns: errors |
url: /api/company |
Request: | Response - ok: | Response - not found: |
---|---|---|
expects: { movieId: int } |
httpcode: 200 ✔️ | httpcode: 404 ❌ |
method: POST | returns: company | returns: errors |
url: /api/company/{id}/movies |
Request: | Response - ok: | Response - not found: |
---|---|---|
method: GET | httpcode: 200 ✔️ | httpcode: 404 ❌ |
url: /api/company/{id} | returns: company | returns: nothing |
Request: | Response - ok: | Response - no content: |
---|---|---|
method: GET | httpcode: 200 ✔️ | httpcode: 204 ✔️ |
url: /api/company | returns: list of companies | returns: nothing |
Request: | Response - ok: | Response - bad request: | Response - not found: |
---|---|---|---|
expects: { id: int, name: string, type: int } |
httpcode: 20 ✔️ | httpcode: 400 ❌ | httpcode: 404 ❌ |
method: PUT | returns: company | returns: errors | returns: nothing |
url: /api/company/{id} |
Request: | Response - ok: | Response - not found: |
---|---|---|
method: DELETE | httpcode: 200 ✔️ | httpcode: 404 ❌ |
url: /api/company/{id} | returns: nothing | returns: nothing |
Request: | Response - ok: | Response - not found: |
---|---|---|
method: DELETE | httpcode: 200 ✔️ | httpcode: 404 ❌ |
url: /api/company/{id}/movies/{movieId} | returns: nothing | returns: errors |
- expects:
{ characterName: string, role: int, movieId: int, personId: int }
- httpcode: 200 ✔️
- method: POST
- url: /api/crewmember
- returns: crew member
- httpcode: 200 ✔️
- method: GET
- url: /api/crewmember
- returns: list of crew members
- httpcode: 200 ✔️
- method: GET
- url: /api/crewmember/{id}
- returns: crew member
- expects:
{ id: int, characterName: string, role: int, movieId: int, personId: int }
- httpcode: 200 ✔️
- method: PUT
- url: /api/crewmember/{id}
- returns: crew member
- httpcode: 200 ✔️
- method: DELETE
- url: /api/crewmember/{id}
- returns: nothing
- expects:
{ name: string }
- httpcode: 200 ✔️
- method: POST
- url: /api/genre
- returns: genre
- httpcode: 200 ✔️
- method: GET
- url: /api/genre
- returns: list of genres
- httpcode: 200 ✔️
- method: GET
- url: /api/genre/{id}
- returns: genre
- expects:
{ id: int, name: string }
- httpcode: 200 ✔️
- method: PUT
- url: /api/genre/{id}
- returns: genre
- httpcode: 200 ✔️
- method: DELETE
- url: /api/genre/{id}
- returns: nothing
- expects:
{ name: string }
- httpcode: 200 ✔️
- method: POST
- url: /api/language
- returns: language
- httpcode: 200 ✔️
- method: GET
- url: /api/language
- returns: list of languages
- httpcode: 200 ✔️
- method: GET
- url: /api/language/{id}
- returns: language
- expects:
{ id: int, name: string }
- httpcode: 200 ✔️
- method: PUT
- url: /api/language/{id}
- returns: language
- httpcode: 200 ✔️
- method: DELETE
- url: /api/language/{id}
- returns: nothing
- expects:
{ description: string, languageId: int, length: int, name: string, releaseDate: date }
- httpcode: 200 ✔️
- method: POST
- url: /api/movie
- returns: movie
- expects:
{ genreId: int }
- httpcode: 200 ✔️
- method: POST
- url: /api/movie/{id}/genres
- returns: movie
- httpcode: 200 ✔️
- method: GET
- url: /api/movie
- returns: list of movies
- httpcode: 200 ✔️
- method: GET
- url: /api/movie/{id}
- returns: movie
- expects:
{ id: int, description: string, languageId: int, length: int, name: string, releaseDate: date }
- httpcode: 200 ✔️
- method: PUT
- url: /api/movie/{id}
- returns: movie
- httpcode: 200 ✔️
- method: DELETE
- url: /api/movie/{id}
- returns: nothing
- httpcode: 200 ✔️
- method: DELETE
- url: /api/movie/{id}/genres{genreId}
- returns: nothing
- expects:
{ birthDate: date, birthPlace: string, description: string, firstName: string, lastName: string }
- httpcode: 200 ✔️
- method: POST
- url: /api/person
- returns: person
- httpcode: 200 ✔️
- method: GET
- url: /api/person
- returns: list of persons
- httpcode: 200 ✔️
- method: GET
- url: /api/person/{id}
- returns: person
- expects:
{ id: int, birthDate: date, birthPlace: string, description: string, firstName: string, lastName: string }
- httpcode: 200 ✔️
- method: PUT
- url: /api/person/{id}
- returns: person
- httpcode: 200 ✔️
- method: DELETE
- url: /api/person/{id}
- returns: nothing