This repository contains a Web API solution with Swagger documentation and a separate test solution for testing the API.
The API is Swagger-enabled, which means you can explore and test the API endpoints using Swagger UI. To access the Swagger documentation, follow these steps:
-
After running the project locally (see the next section for instructions), open a web browser.
-
Navigate to the following URL: http://localhost:PORT/swagger Replace
PORTwith the port number where the API is running. -
You will be presented with the Swagger UI, where you can browse and test the available API endpoints.
To run the project locally, follow these steps:
-
Clone or download this repository to your local machine.
-
Open Visual Studio. Open 'search-management-api' Folder
-
In Visual Studio, select the "SearchManagement.API" folder from the folder view in Solution Explorer.
-
Open the "SearchManagement.sln" solution file located in the "SearchManagement.API" folder.
-
Build and run the project. The API should start locally, and you can access it at
http://localhost:PORT, wherePORTis the port number specified in the project configuration.
To run the test cases for the API, follow these steps:
-
After opening the project in Visual Studio, click on the "Test" menu in the top menu bar.
-
Select "Test Explorer" from the dropdown.
-
In the Test Explorer window, click on the "Run All Tests" button.
-
The test cases will be executed, and the results will be displayed in the Test Explorer.
Feel free to explore and use the API, and don't hesitate to reach out if you have any questions or issues.