A project to introduce practices for building an API in C#/.Net Core 2.2.0.
- Clone this repository from GitHub.
- Install MySQL on your computer.
- Open the downloaded directory in a text editor of your choice. (VSCode, Atom, etc.)
- In your terminal, navigate to the project directory and run the commands dotnet restore and dotnet build to download dependencies and build the configuration.
- Currently, the mySQL database is set up with an appsettings.json file that was not uploaded to Github. Once you have saved the SQL database on your computer, create an appsettings.json file in the project root directory, and update it with your MySQL installation information in this format:
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=YOUR PORT NUMBER HERE;database=DATABASE NAME AS YOU SAVED IT;uid=YOUR USER ID HERE;pwd=YOUR PASSWORD HERE;"
}
}
- To run MySQL migrations and create a database in your MySQL installation, enter the following command in your terminal:
dotnet ef database update
. - This API uses Swagger. To launch the Swagger/OpenAPI utility in your browser, from the project directory in your terminal, enter
dotnet run
and open a browser page at localhost:5000. You can now see all API routes grouped by controller. Clicking on a route will expand it and show details of that route, and give you the option to "Try It Out."
There are no known bugs at the time of this update.
Have a bug or an issue with this application? [Open a new issue] here on GitHub.
- C#
- .NET Core
- ASP.NET Core MVC
- MySQL
- Identity
- MSBuild
- Git and GitHub
- Swagger/OpenAPI
-
As a user, I want to be able GET remedies related to a specific ailment.
-
As a user, I want to be able to POST natural remedies for a specific ailment.
-
As a user, I want to see a list of all ailments.
-
As a user, I want to be able to PUT and DELETE remedies that I have created.
-
As a user, I want to be able to look up remedies by name, details, ailment and biological system/category.
-
As a user, I want to be able to tag remedies with specific ingredients.
-
As a user, I want to see all uses for a particular ingredient.
-
As a user, I want to be able to post ratings for remedies.
-
As a user, I want to see the best Remedies by rating.
-
As a user, I want error messages to tell me what I did wrong.
-
As a user, I want to be able to create a user profile and log in so that I can rate, add, edit, and delete my remedies.
-
On get request, return dictionary with key value pairs of
{{"categories", List<strings>{"skin","GI","eyes","whatever"}}, {"response", List<Remedy>{}}
This software is licensed under the MIT license.
Copyright (c) 2020 Julia Seidman, DJ Zevenbergen & Jason Macie