This is the API for Eventurs. It is a RESTful API that is used to create, read, update, and delete events and users. It is build using Laravel and MySQL.
- Clone the repository
- Run
composer install
- Run
cp .env.example .env
- Run
php artisan key:generate
- Create a MySQL database
eventursdb
and add the credentials to the.env
file - Run
php artisan migrate
Logging an account POST - localhost:8000/api/login Request:
{
"email": [your email],
"password": [your password]
}
Response:
{
"message": "Login successful",
"current_user": [user]
"access_token": [token]
}
Registering an account POST - localhost:8000/api/register Request:
{
"name": [your name],
"email": [your email],
"password": [your password],
"password_confirmation": [your password]
}
Response
{
"message": "User successfully created",
"current_user": [user]
"access_token": [token]
}