Skip to content

Stackcasts/api-playground

Repository files navigation

Stackcasts API Playground

A backend API playground powered by Laravel and created by Stackcasts

View the sourcecode at: https://github.com/stackcasts/api-playground

View the demo at: https://api-playground.stackcasts.com

Goals

To create a simple Laravel based example API where students learning programming online can experiment safely without having to pay or sign up for any unnecessary services.

Api Endpoints

A paginated list of all users

# GET '/users'
$ curl GET https://api-playground.stackcasts.com/api/users

Find a user by their id

# GET '/users/{id}'
$ curl GET https://api-playground.stackcasts.com/api/users/{id}

Create a user

# POST '/users'
$ curl POST https://api-playground.stackcasts.com/api/users

Update a user

# PUT '/users'
$ curl PUT https://api-playground.stackcasts.com/api/users/{id}

Delete a user

# DELETE '/users/{id}'
$ curl DELETE https://api-playground.stackcasts.com/api/users/{id}

Installation

Note: You do not need to install anything to have access to the API Playground.

These installation steps are only for people who would like to run the API Playground locally or on their own servers.

git clone https://github.com/stackcasts/api-playground api-playground
cd api-playground

Create your database and update .env with your database connection details

php artisan migrate --seed

License

MIT

About

Create a simple playground for playing around with apis using a Laravel backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published