Api built for gathering information in order to defeat the galactic empire.
-
Download and install .NET 5.0 SDK
-
Clone project
git clone https://github.com/adiamante/starwars.intelligence.git
- Open src/StarWars.Intelligence.sln
- Set StarWars.Intelligence.Api as startup project
- Run (F5) and a browser should open to swagger UI
dotnet build src/StarWars.Intelligence.sln
dotnet run --project src/StarWars.Intelligence.Api/StarWars.Intelligence.Api.csproj
use browser and visit https://localhost:5001/swagger/index.html
- Run all tests (Ctrl + R, A)
- Alternatively open Test Explorer and run using buttons
dotnet test src/StarWars.Intelligence.sln
- /Intelligence/GetLukesShips
- returns starships related to Luke Skywalker
- /Intelligence/GetSpeciesClassificationsFromEpisodeOne
- returns species classifications from the first Star Wars movie
- /Intelligence/GetGalaxyPopulation
- returns the total population of the galaxy
- AutoMapper Profile for data transfer objects
- Data Transfer Objects
- ServiceCollection Extensions for adding IntelligenceService
- IntelligenceService related classes
- Tests for ApiIntelligenceService
- Files for testing