- dotnet
- C#
- entity
- swagger
- aspnetcore
This is a seeded api which can be called on to display national parks from around the country.
- go to https://github.com/thomasfriedrichs/ParksApi.Solution
- select the green 'code' box and copy the link to your clipboard
- navigate to the cloned file and type 'code .'
- in the ParksApi.Solution directory create an 'appsettings.json' file
- copy the code below into your appsettings.json file
{
"Logging": {
"LogLevel": {
"Default": "Warning",
"System": "Information",
"Microsoft": "Information"
}
},
"AllowedHosts": "*",
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;database=National_Parks;uid=root;pwd=epicodus;"
}
}
- navigate to NationalParksLocator directory and run 'dotnet ef database update' in your terminal
- now do 'dotnet watch run' in your terminal
- type 'http://localhost:5000/swagger' in your browser url bar
- now you have a view where you can test out those endpoints!
- No known Bugs
MIT License
Copyright (c) [2021] [Thomas Friedrichs]
If you have any questions or concerns please feel free to contact me!
Thomas Friedrichs friedrichs.tommy@gmail.com