ToDo API example using PHP Slim 3, Laravel Eloquent and SQLite 3.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jose Quintana 65bedcba65
update readme
2 years ago
db init 2 years ago
logs init 2 years ago
public init 2 years ago
src init 2 years ago
templates init 2 years ago
tests/Functional init 2 years ago
.editorconfig init 2 years ago
.gitignore init 2 years ago
CONTRIBUTING.md init 2 years ago
README.md update readme 2 years ago
composer.json init 2 years ago
composer.lock init 2 years ago
phpunit.xml init 2 years ago

README.md

slim3-todos-example

Todos example API using Slim Framework 3 and SQLite 3.

Usage

To install dependencies:

composer install

To create the database:

composer db

To run the application in development mode:

composer start

To run the test suite:

composer test

API

Todo

  • GET /todo
  • GET /todo/{id}
  • POST /todo : fields: subject and status
  • PUT /todo/{id} : fields: subject and status
  • DELETE /todo/{id}
  • GET /todo/{id}/category
  • POST /todo/{id}/category/{category_id}

Category

  • GET /category
  • GET /category/{id}
  • POST /category : fields: name
  • PUT /category/{id}
  • DELETE /category/{id}