Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rezoanulhasan/sell-tickets-laravel


https://github.com/rezoanulhasan/sell-tickets-laravel

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

# Project: Online Ticket Selling

## API

API for managing trips and tickets

## Endpoints

### 1. Show Trip Form

- **Endpoint:** `/trip/form`
- **Method:** `GET`
- **Description:** Show trip form for creating a trip

### 2. Store a New Trip

- **Endpoint:** `/trip/store`
- **Method:** `POST`
- **Description:** Store a new trip

### 3. Show Available Seats for a Trip

- **Endpoint:** `/trip/seats`
- **Method:** `GET`
- **Description:** Show available seats for a trip and booking info

### 4. Purchase a Ticket

- **Endpoint:** `/trip/purchase`
- **Method:** `POST`
- **Description:** Purchase a ticket

### 5. Show All Trips

- **Endpoint:** `/`
- **Method:** `GET`
- **Description:** Show all trips information

## Run locally
- Clone the repository
- npm install
- php artisan serve