Skip to content

shindesharad71/RESTful-Slim-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚥 Slim RESTful API

RESTful API Made Using Slim 3 PHP Framework.

💎 API Methods

🔘 For Blog Posts

  • /api/posts => GET - Get All Blog Posts.
  • /api/post/{id} => GET - Get Single Blog Post.
  • /api/post/add => POST - Add New Post.
  • /api/post/update/{id} => PUT - Update Post.
  • /api/post/delete/{id} => DELETE - Delete Post.

🔘 For Categories

  • /api/categories => GET - Get All Categories.
  • /api/category/{id} => GET - Get Single Category.
  • /api/category/add => POST - Add New Category.
  • /api/category/update/{id} => PUT - Update Category.
  • /api/category/delete/{id} => DELETE - Delete Category.

💎 Database Structure

Import slim_api.sql into database.

Database Tables

Posts Table

Categories Table

💎 License

MIT License = Free Software!