The HttpClient module for making AJAX requests.
Adds a movie to the user's list of favorites.
The unique ID of the movie.
An Observable emitting the updated user object.
Deletes the current user's account from the database.
An Observable emitting a success message as text.
Updates the profile information of the current user.
An object containing the new profile details.
An Observable emitting the updated user object.
Retrieves all movies from the database.
An Observable that emits an array of all movie objects.
Retrieves information about a specific director by name.
The name of the director.
An Observable emitting the director's details (Name, Bio, Birth).
Retrieves the list of favorite movie IDs for the current user.
An Observable emitting an array of movie IDs.
Retrieves information about a specific genre by name.
The name of the genre.
An Observable emitting the genre's details (Name, Description).
Retrieves a single movie by its title.
The title of the movie to fetch.
An Observable that emits the requested movie object.
Retrieves the profile data for the current user.
The username of the profile to fetch.
An Observable emitting the user's profile information.
Removes a movie from the user's list of favorites.
The unique ID of the movie to remove.
An Observable emitting the updated user object.
Logs an existing user into the system.
An object containing the user's credentials (Username, Password).
An Observable that emits an object containing the user details and a JWT token.
Registers a new user in the system.
An object containing the new user's information (Username, Password, Email, Birthday).
An Observable that will emit the server's response upon completion.
Service to handle all communication with the backend API.
Description
This service provides methods for user authentication, movie data retrieval, and user profile management (including favorite movies).