2017 © Pedro PelĂĄez
 

library laravel-api-explorer

API explorer for laravel application

image

netojose/laravel-api-explorer

API explorer for laravel application

  • Sunday, July 29, 2018
  • by netojose
  • Repository
  • 3 Watchers
  • 24 Stars
  • 19 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel API explorer

Latest Version on Packagist ![Total Downloads][ico-downloads], (*1)

Interactive Laravel API explorer. You don't need to write/update documentation for your API. On the fly, Your API documentation will always be available in an interactive way., (*2)

Features

  • Quick install (one-step install, no code change needed);
  • Zero config needed;
  • Store config/parameters to be used anytime;
  • Variables: you can set variables (like id's, tokens, etc. to be used in any place like querystring, header, body, etc.);
  • Global headers: You can set global headers (like tokens, content-type, etc.) to be used in all requests.

Live Demo

https://laravel-api-explorer-demo.herokuapp.com/api-explorer, (*3)

Using variables

You can click on top right icon (wrench) and add your variables. When you will need to set some querystring parameter, header value, body content, etc., you can use ${VARIABLE_NAME}, and this placeholder will be replaced by your variable., (*4)

Using global headers

If you API needs some header in all request (or almost), you can set global headers instead of create these headers for every request. You can click on top right icon (wrench) and add your global headers., (*5)

Screenshots

Routes list

Routes list, (*6)

Route info

Route info, (*7)

Request/response

Request/response, (*8)

Response info

Response info, (*9)

Installation

Via Composer, (*10)

$ composer require netojose/laravel-api-explorer

Usage

You just need access yourdomain.com/api-explorer, (*11)

Configuration

Optionally you can copy config file to override default package configuration, (*12)

php artisan vendor:publish --provider="NetoJose\LaravelApiExplorer\LaravelApiExplorerServiceProvider"

Now you have a config/laravelapiexplorer.php file inside your project,and you can make your changes. Available configurations:, (*13)

Configuration Description Default
enabled Determine if the explorer will available true
route The route to access explorer page api-explorer
match Pattern to routes to be available on explorer api/*
ignore Array of routes to be ignored. You can use a pattern of a route path or route name [,'/',]

Contributing

Please see contributing.md for details and a todolist., (*14)

Security

If you discover any security related issues, please email sputinykster@gmail.com instead of using the issue tracker., (*15)

The Versions

29/07 2018

dev-master

9999999-dev https://github.com/netojose/laravel-api-explorer

API explorer for laravel application

  Sources   Download

MIT

laravel api rest laravelapiexplorer

29/07 2018

1.0.1

1.0.1.0 https://github.com/netojose/laravel-api-explorer

API explorer for laravel application

  Sources   Download

MIT

laravel api rest laravelapiexplorer

25/07 2018

1.0.0

1.0.0.0 https://github.com/netojose/laravel-api-explorer

API explorer for laravel application

  Sources   Download

MIT

laravel api rest laravelapiexplorer