giordanocardillo/slim-restapi

A simple Rest API using Slim Framework

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/giordanocardillo/slim-restapi

1.0.12 2018-04-28 13:25 UTC

This package is not auto-updated.

Last update: 2025-10-12 02:15:18 UTC


README

Code Climate Codacy Grade Packagist

A RESTful API based on Slim Framework using exception driven coding.

Directory Structure

+-- app                Contains app files
|  +-- RestAPI         Contains core files
|  |  +-- Exceptions   Contains custom exception classes
|  |  +-- Utils        Contains utilities
|  +-- routes          Contains the routes
|  +-- config.json     Configuration file
+-- public_html        Public web folder
|  +-- index.php       Main slim page
+-- database.sql        The database structure file   

How to configure it

To configure the RestAPI there is a config.json file inside the app folder. It is self-explanatory.

How to use it

This project uses composer, so you can just issue

composer create-project giordanocardillo/slim-restapi .

Then import the DB using the provided database.sql file

User authentication workflow

TODO