Skip to content

khenrique99/APIREST_example

Repository files navigation

Api REST - Liberfly

Getting started

  1. Clone the repo
git clone https://github.com/kelvinhenri99/APIREST_liberfly.git
  1. Install Laravel dependencies
composer install
  1. Duplicate the '.env.example' file and place it as .env
DB_DATABASE = yourdatabase_name
DB_USERNAME = your_username
DB_PASSWORD = your_password
  1. Run migration & Seeder
php artisan migrate --seed
  1. Generate your application encryption key using
php artisan key:generate
  1. Generate Swagger API
php artisan l5-swagger:generate

Usage

  1. Start the server
php artisan serve

Use External tools

To access documentation via Swagger:

http://127.0.0.1:8000/api/documentation

Also test with Ansomnia or Postan


1° - Create a new User (EMAIL | NAME | PASSWORD)


2° - Login with previously created email and password

With login, it will generate the token that will be necessary to validate the other routes
3° - Test another route passing token in validation to access data

Alt text

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published