Krayin REST API is a medium to use the features of the core Krayin System. By using Krayin REST API, you can integrate your application to serve the default content of Krayin.
- Krayin: v2.0.0
composer require krayin/rest-api
SANCTUM_STATEFUL_DOMAINS="${APP_URL}"
L5_SWAGGER_UI_PERSIST_AUTHORIZATION=true
php artisan krayin-rest-api:install
After executing the above command, you will see the API endpoint displayed in the shell.
http://localhost/public/api/admin/documentation
- You can check the L5-Swagger guidelines too regarding the configuration the API documentation.