Skip to content

RESTful API created using Fat-Free Framework. Sample data and docs included.

License

Notifications You must be signed in to change notification settings

stephaniemoreaujac/restful-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful API

RESTful API created using Fat-Free Framework. https://fatfreeframework.com/

Sample data is included in api_data.sql

There is an option to log API requests which can be disabled in the class Api.php by setting

$log_api_calls = false;

on line 6.

Here's how the logging looks like in backend i.e. database.

API log

The API is located in api/

Below is a list of allowed methods and API endpoints.

Method URI
GET /
GET /{id}
GET user/{id}
GET /completed
GET /uncompleted
POST /
PUT /{id}
DELETE /{id}
DELETE user/{id}
DELETE /delete/{id}
DELETE /delete/all

Full explanation can be found in file index.html which is also hosted here: http://andrejphp.dx.am/restful-api/

Created by: https://andrejphp.is/

About

RESTful API created using Fat-Free Framework. Sample data and docs included.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • PHP 90.5%
  • HTML 9.3%
  • CSS 0.2%