Skip to content

API Development with Laravel 11 🎯 Master best practices in API development.

Notifications You must be signed in to change notification settings

rajandangi/tickets-please

Repository files navigation

Tickets Please

Welcome to Tickets Please! This is a simple ticketing system API built with Laravel, designed to master best practices in API development. It comes packed with features like user management, ticket authorization, error handling, and comprehensive API documentation.

Best Practices Implemented

  • API URL Design
  • Setting up Versioning in API URLs
  • Implementing token-based authentication and revoking authentication tokens
  • Designing API response payloads as per JSON API specification https://jsonapi.org
  • Creating resources with POST requests
  • Resource updates with PATCH and PUT requests
  • Conditionally omitting and including data in API responses
  • Sorting and filtering in API responses
  • Granular permissions on user tokens
  • User Access authorization policies on resources based on roles and permissions
  • Principle of least privilege on validation rules
  • Uniform error handling
  • API documentation

Postman Collection

Check out our Postman Collection to quickly get started with the API. Postman Collection

Resources

Here are some great resources to help you along the way:

Installation

Getting started is easy! Just follow these steps:

  1. Clone the repository
git clone
  1. Install dependencies
composer install
  1. Create a .env file
cp .env.example .env
  1. Generate an application key
php artisan key:generate
  1. Create a database and update the .env file with your database credentials
  2. Run the migrations
php artisan migrate
  1. Seed the database
php artisan db:seed
  1. Start the server and you're good to go

Other Commands

  1. To generate API documentation
php artisan scribe:generate

Documentation

The API documentation can be found at /docs route. API Documentation

About

API Development with Laravel 11 🎯 Master best practices in API development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published