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

https://github.com/jacobstephens2/event-manager-api

The backend for the Event Manager app (PHP, Slim, MySQL)
https://github.com/jacobstephens2/event-manager-api

apache24 api mysql8 php8 slim4 sql

Last synced: 4 days ago
JSON representation

The backend for the Event Manager app (PHP, Slim, MySQL)

Awesome Lists containing this project

README

          

# Event Manager API
The backend for the Event Manager app. The event manager app is hosted at https://eventmanager.stewardgoods.com/

The Event Manager App's repository is at https://github.com/JacobStephens2/event-manager-ui

---

## Routes

### Users

#### POST /login

https://api.eventmanager.stewardgoods.com/login

Submit a JSON body in the request like the following:

`{
"email": "jacob@example.com",
"password": "goodPassword123"
}`

#### POST /logout

Clear the Http Only access_token cookie.

#### POST /sign-up

https://api.eventmanager.stewardgoods.com/sign-up

Submit a JSON body in the request like the following:

`{
"email": "jacob@example.com",
"password": "goodPassword123"
}`

---

### Events

#### GET /events
Get all events.

#### GET /event/{id}
Get a specific event by id.

#### POST /event
Create an event.

#### PUT /event
Update an event by id passed as id in the JSON body of the request.

### DELETE /event
Update an event by id passed as id in the JSON body of the request.

---

### Clients

#### GET /clients
Get all clients.

#### GET /client/{id}

#### GET /client/{id}/events
Get events associated with a particular client.

#### POST /client
Create an client.

#### PUT /client
Update an client by id passed as id in the JSON body of the request.

#### DELETE /client
Update an client by id passed as id in the JSON body of the request.

---

### Other

#### GET /

https://api.eventmanager.stewardgoods.com/

#### GET /hello/{name}

https://api.eventmanager.stewardgoods.com/hello/Jacob

#### POST /mimic-json

https://api.eventmanager.stewardgoods.com/mimic-json

Submit a JSON body in the request like the following:

`{
"message": "Hello, world!"
}`

### GET /events
Get all events.

### GET /event/{id}
Get a specific event by id.

### POST /event
Create an event.

`{
"name": "Commencement"
}`

### PUT /event
Update an event by id passed as id in the JSON body of the request.

`{
"id": "1",
"name": "North Point Commencement"
}`

### DELETE /event
Update an event by id passed as id in the JSON body of the request.

`{
"id": "1"
}`

---

## Slim 4, PHP 8, MySQL 8 and Apache 2.4

This project has been developed to run on a server running PHP 8 (https://www.php.net/releases/8.0/en.php) and Apache 2.4 (https://httpd.apache.org/docs/2.4/), while having access to a MySQL 8 server (https://dev.mysql.com/doc/refman/8.0/en/). This project uses the Slim 4 Framework: https://www.slimframework.com/docs/v4/