Skip to content

dimitrisganotis/RESTful-API-with-Slim-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API with the Slim Framework

This is a simple Public RESTful API built with the Slim Framework (^3.12) and MySQL.

Installation

Create database or import from _schema.sql

Edit src/settings params

Install SlimPHP and dependencies

$ composer install

Endpoints

  • Get All Books: GET /api/books
  • Get One Book: GET /api/books/{id}
  • Create Book: POST /api/books
  • Update Book: PUT /api/books/{id}
  • Delete Book: DELETE /api/books/{id}

Local Server

Start the API by running:

$ php -S localhost:8080

inside the public folder.

About

Public RESTful API built with the Slim Framework and MySQL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published