Skip to content

Artisan command "make:rest api project".

Yan Datsyuk edited this page May 18, 2017 · 4 revisions

How to generate code for your REST API project.

This page describes a process of generation scaffolded code and contains list of requirements for it.

List of requirements before code generation.

  1. Install package (see package installation)
  2. Configure your project (see initial project configuration)
  3. Have ready database schema.(see database schema recommendations)

List of steps for generation REST API project.

  1. Open your project root directory and run artisan command: php artisan make:rest-api-project
  2. Choose option "1. Use default convention and take info from db schema."
  3. Execute command php artisan l5-swagger:generate
  4. Execute command composer dump-autoload
Clone this wiki locally