Skip to content

Playing around with ASP.NET and API integrations.

Notifications You must be signed in to change notification settings

Archosian/PokeApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sonnet

A toy example that plugs two APIs together, "translating" the Pokemon's flavorText.

Definitions

The Swagger UI is left running for easier browsing of the numerous (1) endpoints:

/swagger

See the complete spec and definitions in the UI, or directly at the OpenAPI spec:

swagger/v1/swagger.json

Get a Pokemon object and its translation from:

/api/pokemon/{identifier}

Run

Run the API from Sonnet/ with:

dotnet run

The API will be exposed on localhost:5270/

Alternatively, build and run via docker from Sonnet/ by running:

docker build -t sonnet -f Dockerfile .
docker run -p 8080:80 sonnet:latest

This will expose the service locally on port 8080 for perusal.

Tests

You can run all tests directly from the root of the repo with dotnet test

About

Playing around with ASP.NET and API integrations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published