Endpoints:
/api/banned for display banned pokemons
/api/banned/store for store pokemon (fetch data from api by pokemon name)
- name: required
/api/banned/{id} for destroy pokemon
- id: required
/api/info?names=... for display specific pokemons data
- ?names: required, string
/api/custom for display custom pokemons data
/api/custom/store for create custom pokemon
- fields
- name: required, string
- description: nullable, string
- height: required, integer
- weight: required, integer
- damage: required, integer
- type: required, string
/api/custom/update/{id}
- fields
- name: required, string
- description: nullable, string
- height: required, integer
- weight: required, integer
- damage: required, integer
- type: required, string
/api/custom/destroy/{id}
- id: required
Deploy:
git clone git@github.com:patryk-lukasz-kacprowicz/PokeWiki.gitcomposer install --optimize-autoloadercp .env.example .envphp artisan key:generateConfigure database data in .env fileConfigure secret key in .env filephp artisan migrate
Data retrieval from the API works on a search basis. If the user selects a Pokémon that is not in the database but exists in the API, it will first be added to the database and then its data will be displayed.