Skip to content

A Laravel 4.1 based REST API backend for a Fussball application.

Notifications You must be signed in to change notification settings

ronaldvaneede/fussball-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fussball-backend

Based on Laravel 4.1

Currently supporting

  • Reading all matches
  • Reading a specific match
  • Reading a specific match with scores
  • Reading scores of a specific match
  • Creating new matches

Routing

GET  /api/v1/matches
GET  /api/v1/matches/{match_id}
GET  /api/v1/matches/{match_id}?scores=true
GET  /api/v1/matches/{match_id}/scores
GET  /api/v1/matches/{match_id}/scores/{score_id}
POST /api/v1/matches (accepts application/json, parameters: name and status ('open','playing','finished' or 'closed'))

Example to post a new match

curl -X POST -H "Content-Type: application/json" \
-d '{"name":"match name", "status":"open"}' http://localhost/api/v1/matches

To get started:

  • Create a database and edit /app/config/database.php with the connection details
  • Run composer install
  • Run artisan migrate
  • Run artisan db:seed (optional) if you want to seed the database with some data

About

A Laravel 4.1 based REST API backend for a Fussball application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published