Skip to content

queuing4oranges/lesbotoc-backend-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lesbotoč APIs

About

These API scripts are designed to allow users to manage events, contacts, images and signupforms through a set of RESTful APIs. The script provides the ability to create, read, update, and delete events and contacts, to add and delete images and to save event signup information in a database.


Tech Stack

This API script is built using PHP and uses MySQL as the database.


How to run the project

To run this project, you will need to have PHP and MySQL installed on your system. Here are the steps to get started:

  1. Clone this repository to your local machine:
    git clone https://github.com/queuing4oranges/lesbotoc-backend-api.git

  2. Navigate to the project directory:
    cd your-repo

  3. Set up your database and database tables.

  4. Configure the database connection by updating the corresponding values.

  5. Start the server by running the following command:
    php -S localhost:8000

  6. You should now be able to access the APIs at: http://localhost:8000/api/{endpoint}

API Endpoints

Here are the available endpoints for this API script:

Events

Route Functionality
GET /api/events/read Retrieve a list of all events
GET /api/events/single_read{id} Retrieve a single event
POST api/events/create Create an event
PUT api/events/update{id} Update an event
DELETE api/events/delete{id} Delete an event

Contacts

Route Functionality
GET /api/contacts/read Retrieve a list of all contacts
GET /api/events/single_read{id} Retrieve a single contact
POST api/contacts/create Create a contact
PUT api/contacts/update{id} Update a contact
DELETE api/contacts/delete{id} Delete a contact

Images

Route Functionality
GET /api/images/read Retrieve a list of all images
GET /api/images/single_pic{id} Retrieve a single image
POST api/contacts/upload Upload an image
DELETE api/images/delete{id} Delete an image

Speed-Dating Signup Form

Route Functionality
GET /api/speeddating/read Retrieve a list of all speed dating participants
POST api/speeddating/create Create a speed dating participant
DELETE api/speeddating/delete{id} Delete a speed dating participant

About

APIs to make CRUD operations on lesbotoc website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages