Pokemon Management API
This Pokemon Management API is a REST API for managing Pokemon, Owners, and their Reviews. Pokemon have several components such as their Category/Type, a relationship to Owners, and Reviews of them. Owners own pokemon and are also linked to a specific Country. Reviewers can conduct reviews on pokemon.
Dotnet core and other important dependencies like Entity Framework were used to construct this API. SQLServer is used for the database, managed with the help of Sql Server Management Studio (SSMS).
Retrieves a list of all categories present in the database.
['CategoryDto']
Retrieves a specific category based on Id. Responds with Bad Request if no id is found.
'CategoryDto'
Retrieves all pokemon linked to a specific category. Responds with Bad Request if no id is found.
'[PokemonDto]'
Adds a new category to the database.
'CategoryDto'
Updates a specific category based on Id. Responds with Bad Request if no id is found.
'CategoryDto'
Deletes a specific category based on Id. Responds with Bad Request if no id is found.
'categoryId'
Retrieves a list of all countries present in the database.
['CountryDto']
Retrieves a specific country based on Id. Responds with Bad Request if no id is found.
'CountryDto'
Retrieves the country of a specified owner. Responds with Bad Request if no id is found.
'CountryDto'
Adds a new country to the database.
'CountryDto'
Updates a specific country based on Id. Responds with Bad Request if no id is found.
'CountryDto'
Deletes a specific country based on Id. Responds with Bad Request if no id is found.
'countryId'
Retrieves a list of all owners present in the database.
['OwnerDto']
Retrieves a specific owner based on Id. Responds with Bad Request if no id is found.
'OwnerDto'
Retrieves all pokemon owned by a specific owner. Responds with Bad Request if no id is found.
'[PokemonDto]'
Adds a new owner to the database.
'OwnerDto'
Updates a specific owner based on Id. Responds with Bad Request if no id is found.
'OwnerDto'
Deletes a specific owner based on Id. Responds with Bad Request if no id is found.
'ownerId'
Retrieves a list of all pokemon present in the database.
['PokemonDto']
Retrieves a specific pokemon based on Id. Responds with Bad Request if no id is found.
'PokemonDto'
Retrieves the average rating of a pokemon based on all of its reviews. Responds with Bad Request if no id is found.
'rating (1-5)'
Adds a new Pokemon to the database.
'PokemonDto'
Updates a specific pokemon based on Id. Responds with Bad Request if no id is found.
'PokemonDto'
Deletes a specific pokemon based on Id. Responds with Bad Request if no id is found.
'pokemonId'
Retrieves a list of all reviews present in the database.
['ReviewDto']
Retrieves a specific review based on Id. Responds with Bad Request if no id is found.
'ReviewDto'
Retrieves all reviews of a specific pokemon. Responds with Bad Request if no id is found.
'[ReviewDto]'
Adds a new review to the database.
'ReviewDto'
Updates a specific review based on Id. Responds with Bad Request if no id is found.
'OwnerDto'
Deletes a specific review based on Id. Responds with Bad Request if no id is found.
'reviewId'
Retrieves a list of all reviewers present in the database.
['ReviewerDto']
Retrieves a specific reviewer based on Id. Responds with Bad Request if no id is found.
'ReviewerDto'
Retrieves all reviews made by a specific reviewer. Responds with Bad Request if no id is found.
'[ReviewDto]'
Adds a new reviewer to the database.
'ReviewerDto'
Updates a specific reviewer based on Id. Responds with Bad Request if no id is found.
'OwnerDto'
Deletes a specific reviewer based on Id. Responds with Bad Request if no id is found.
'reviewerId'