Giter VIP home page Giter VIP logo

laravel-playground's Introduction

Laravel Logo

Installation

  • Clone the repo
  • Install vendor dependencies: docker run --rm --interactive --tty --volume $PWD:/app composer install --ignore-platform-reqs --no-scripts
  • In case of missing classes: docker run --rm --interactive --tty --volume $PWD:/app composer dump-autoload
  • Copy env file: cp .env.example .env
  • Start container: vendor/bin/sail up -d
  • Run Migrations and Seeders: vendor/bin/sail artisan migrate:fresh --seed
  • Publish API: vendor/bin/sail artisan install:api

REST API

To getcorreclty formated JSON response including error messages, you must send Accept: application/json request header.

Activities REST API
  • Index: GET /api/activities
  • Store: POST /api/activities
  • Show: GET /api/activities/{activity}
  • Update: PUT/PATCH /api/activities/{activity}
  • Destroy: DELETE /api/activities/{activity}
Experimental API

Various unsorted experimental endpoints

  • Get /api/experimental/whattimeisit
  • Post: /api/experimental/in
  • Get: /api/experimental/in - get local time
  • Get /api/experimental/say/{message} -get time is specified location ˙with POST parameters continent and city ['continent' => 'Europe', 'city' => 'Berlin']

Testing

  • Run tests vendor/bin/sail artisan test

laravel-playground's People

Contributors

klas avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.