Skip to content

lazynoda/pokeapi

Repository files navigation

PokeAPI cli

How to run

Use the following command:

./gradlew run --args="limit=$limit offset=$offset graphQL=$graphQL"

Where:

  • $limit is the limit param for the API. Number. Mandatory.
  • $offset is the offset param for the API. Number. Mandatory.
  • $graphQL uses PokeAPI GraphQL v1 (beta) instead of PokeAPI v2. Boolean. Optional. Default false.

Examples:

./gradlew run --args="limit=100 offset=23"
./gradlew run --args="limit=300 offset=9 graphQL=true"

Tests

I've only created PokeAPI tests because it's representative of a typical test scenario: It has dependencies, mocks, fake server responses in files...

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published