By Hannah Young
This web API is designed to scrape historic events from Wikipedia as necessary, store that data, and provide it upon request through HTTP API Requests to the Visscher client.
- C#
- .NET
- mariadb
- Entity Framework
- Swagger / OpenAPI
TODO
- Download and install the .NET 6.0 SDK as required for your system. Be sure to add the .NET sdk to your PATH
- Use terminal to navigate to desired parent directory and use
git clone https://github.com/Corgibyte/visscher.git Visscher.Solution - Navigate into the project directory nested inside the .Solution directory:
cd Visscher.Solution/Visscher - Create an appsettings.json file:
touch appsettings.json - Edit the new appsettings.json file and add the following, making sure to replace the indicated sections with your MySQL user ID and password:
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;database=visscher_api;uid=[YOUR MYSQL USER ID];pwd=[YOUR MYSQL PASSWORD];"
}
}
- Back in the terminal, in the Visscher directory build the project:
dotnet restore - Create database from migration data:
dotnet ef database update - Run project:
dotnet run
API endpoints can be accessed using a client such as Postman or programatically using your own client. Endpoint testing can also be performed on the Swagger documentation accessed at http://localhost:5000/swagger
TODO
- None
Hippocratic License 3.0, Copyright 2022 Hannah Young.