Backend for Codex application
- Route:
v1/verificaToken
- Method: GET
- Description: Endpoint to verify the validity of the authentication token.
- Route:
v1/test_autenticacao
- Method: GET
- Description: Test endpoint to verify the functionality of authentication.
- Route:
v1/testLogin
- Method: GET
- Description: Endpoint to perform a login test.
- Route:
v1/login
- Method: POST
- Description: Endpoint to authenticate a user.
- Route:
v1/accedi/{utente}/{hash?}
- Method: GET
- Description: Route to display user registration information.
-
List All Nations:
- Route:
GET /v1/nazioni
- Description: Returns the list of all nations.
- Route:
-
List Nations by Continent:
- Route:
GET /v1/nazioni/continente/{continente}
- Description: Returns the list of nations based on the specified continent.
- Route:
-
Show Details of a Specific Nation:
- Route:
GET /v1/nazioni/{nazione}
- Description: Displays details of the specific nation.
- Route:
-
List All Italian Comuni:
- Route:
GET /v1/comuniItaliani
- Description: Returns the list of all Italian Comuni.
- Route:
-
Show Details of a Specific Italian Comune:
- Route:
GET /v1/comuniItaliani/{comuneItaliano}
- Description: Displays details of the specific Italian Comune.
- Route:
-
List All Movies:
- Route:
GET /v1/film
- Description: Returns the list of all movies.
- Route:
-
List Latest Movies:
- Route:
GET /v1/film/ultimi/{numero}
- Description: Returns the latest movies based on the specified number.
- Route:
-
List Movies by Category:
- Route:
GET /v1/categorie/film/{categoria}
- Description: Returns movies from a specific category.
- Route:
-
Show Details of a Specific Movie:
- Route:
GET /v1/film/{film}
- Description: Displays details of a specific movie.
- Route:
-
List All TV Series:
- Route:
GET /v1/serieTv
- Description: Returns the list of all TV series.
- Route:
-
List Latest TV Series:
- Route:
GET /v1/serieTv/ultimi/{numero}
- Description: Returns the latest TV series based on the specified number.
- Route:
-
List TV Series by Category:
- Route:
GET /v1/categorie/serieTv/{categoria}
- Description: Returns TV series from a specific category.
- Route:
-
Show Details of a Specific TV Series:
- Route:
GET /v1/serieTv/{serie}
- Description: Displays details of a specific TV series.
- Route:
Controllers are responsible for managing different functionalities of the application.
- Description: Manages operations related to user authentication and registration.
- Main Methods:
login
: Authenticates a user.show
: Displays user registration information.
- Description: Manages operations related to categories in the application.
- Main Methods:
index
: Returns the list of categories.show
: Displays details of a specific category.store
: Creates a new category.update
: Updates data of an existing category.destroy
: Removes a category.
- Description: Controls file uploads in the application.
- Main Methods:
index
: Returns the upload page.store
: Processes the file upload.
- Description: Manages operations related to user groups.
- Main Methods:
index
: Returns the list of groups.show
: Displays details of a specific group.store
: Creates a new group.update
: Updates data of an existing group.destroy
: Removes a group.
- Description: Manages operations related to movies in the application.
- Main Methods:
index
: Returns the list of movies.ultimi
: Returns the latest movies based on a specific number.indexCategory
: Returns movies from a specific category.show
: Displays details of a specific movie.store
: Creates a new movie.update
: Updates data of an existing movie.destroy
: Removes a movie.
- Description: Manages operations related to TV series in the application.
- Main Methods:
index
: Returns the list of TV series.ultimi
: Returns the latest TV series based on a specific number.indexCategory
: Returns TV series from a specific category.show
: Displays details of a specific TV series.store
: Creates a new TV series.update
: Updates data of an existing TV series.destroy
: Removes a TV series.
- Description: Manages operations related to TV series episodes.
- Main Methods:
indexSerie
: Returns the list of episodes of a specific series.ultimi
: Returns the latest episodes of a series based on a specific number.show
: Displays details of a specific episode.store
: Creates a new episode.update
: Updates data of an existing episode.destroy
: Removes an episode.
Middlewares are used to perform actions before or after processing a request. Below are some middlewares used in the project:
-
Authenticazine:
- Description: Middleware for user authentication.
-
ContattiRuoli:
- Description: Middleware to manage user permissions.