An API built using Laravel to manage certificates.
Certificate Authentication API, a robust and versatile API developed using Laravel. This API is your solution for managing certificate authentication with ease.
- PHP 8.2
- Composer
- Database (MySQL)
Note: Before you start, make sure you have all the prerequisites in place as mentioned in the previous step.
- Clone the Project:
git clone https://github.com/MohAlkurdi/Authficate-API.git
- Configure Environment Variables:
cp .env.example .env
- Install Composer Dependencies:
composer install
- Generate Application Key:
php artisan key:generate
- Run Database Migrations:
php artisan migrate
- Start the Development Server:
php artisan serve
- Laravel application should now be accessible at http://localhost:8000
POST /api/register
- Request Body
{
"name": "Moh",
"email": "m@m.com",
"password": "12345678",
"password_confirmation": "12345678"
}
POST /api/login
- Request Body
{
"email": " m@m.com",
"password": "12345678"
}
POST /api/logout
Authentication:
Include a Bearer Token in the Authorization
header of your HTTP request.
Header | Value |
---|---|
Authorization |
Bearer <your_token_here> |
GET /api/user
Header | Value |
---|---|
Authorization |
Bearer <your_token_here> |
POST /api/get-certificates
- Request Body
{
"email": " m@m.com",
"password": "12345678"
}
Header | Value |
---|---|
Authorization |
Bearer <your_token_here> |
GET /api/get-certificate/{id}
Parameter | Type | Description |
---|---|---|
id |
string |
Required. Certificate Id |