This project is a product management application that allows for listing, filtering, and sorting products.
These instructions will help you to run and develop the project on your local machine.
- .NET Core SDK
- An IDE (Visual Studio, Visual Studio Code, etc.)
- A SQL Server database
- Clone the project:
git clone https://github.com/mertcanyardimci/ProductManagerAPI.git
- Navigate to the project folder:
cd project-folder
- Create the database:
Update the connection string defined in the ProductContext class to create your database, and then run the following commands:
dotnet ef database update
- Run the application:
dotnet run
- The application will run by default at https://localhost:5001.
This application can be utilized through API calls.
To list the products:
GET /api/products
To search and sort:
GET /api/products?search=searchTerm&sort=asc|desc&page=pageNumber
- Fork this repository.
- Create a new branch: git checkout -b new-branch
- Make your changes and validate them: git commit -am 'Add new feature'
- Push to your branch: git push origin new-branch
- Submit a Pull Request.