Skip to content

Latest commit

 

History

History
92 lines (69 loc) · 1.1 KB

README.md

File metadata and controls

92 lines (69 loc) · 1.1 KB

Database Schema

Characters

  • Id
  • FirstName
  • LastName
  • Type (1=Heroe,2=Monster)
  • Level
  • RacesId
  • ClassesId
  • WeaponsId
  • PicturesId

Stats

  • Id
  • Strength
  • Intelligence
  • Dexterity
  • CharactersId

Races

  • Id
  • Name

Classes

  • Id
  • Name

Weapons

  • Id
  • Name

CharactersAbilities

  • Id
  • CharactersId
  • AbilitiesId

Abilities

  • Id
  • Name

Pictures

  • Id
  • CharactersId
  • Content

API Endpoints

  • URI BASE /api/v1

  • GET /heroes

  • GET /heroes/:id [0=random]

  • POST /heroes

  • PUT /heroes/:id

  • DEL /heroes/:id

  • GET /heroes/races

  • GET /heroes/classes

  • GET /heroes/weapons

  • GET /monsters

  • GET /monsters/:id [0=random]

  • POST /monsters

  • PUT /monsters/:id

  • DEL /monsters/:id

  • GET /monsters/abilities

  • GET /monsters/races


Notes

Create migrations

  • php artisan make:migration create__table

Run Migrations

  • php artisan migrate

Drop All

  • php artisan migrate:fresh

Create Controller

  • php artisan make:controller Controller --resource

Create TEST

  • php artisan make:test Test

Run Tests

  • vendor/bin/phpunit