Skip to content

caglarkarakoc/slim4-api

Repository files navigation

Slim 4 Api Example

Example of api written in Slim Framework 4 @since 2019

Packages

Running the project:

  1. Run composer

    $ composer install
    
  2. Edit Configuration

    $ cp .env.dist .env
    
  3. Run the migrations

    $ composer migrate
    $ composer seed
    
  4. Run the API

    $ composer start
    
  5. Run the Test

    $ composer test
    

Movies Example

# URL METHOD
Get All Movies api/v1/movies GET
Get One Movie api/v1/movies/{id} GET
Create Movie api/v1/movies/create POST
Update Movie api/v1/movies/{id} PUT
Delete Movie api/v1/movies/{id} DELETE

TODO

  • authentication
  • cache
  • rate limit
  • pagination
  • doc

License

MIT

About

Example of api written in Slim Framework 4

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages