An open API service indexing awesome lists of open source software.

https://github.com/maxking/falcon-api-browse

Browse JSON API in a HTML interface.
https://github.com/maxking/falcon-api-browse

falcon-framework falcon-middleware

Last synced: 7 months ago
JSON representation

Browse JSON API in a HTML interface.

Awesome Lists containing this project

README

          

=================
Falcon API Browse
=================

This project provides a middleware for `Falcon Web Framework
`_ that will render the
response in an HTML form for documentation purpose. It uses the docstring from
the Resource object and all the supported HTTP methods for the resource.

It is inspired by Django Rest Framework's `Browsable API
`_ and is written
using jinja2 templating language.

Installing
----------

This project is currently in early stages of development. Once it is stable
enough to be used by other projects, it will be provided via PyPI.

::

pip install falcon-api-browse

Using
-----

Since this is a middleware for Falcon, you can use it by passing an initialized
instance during Falcon App creation.

::

from falcon import App
from falcon_api_browse import HTMLResponseMiddleware

app = App(middleware=HTMLResponseMiddleware())

Examples
--------

There are some runnable examples in `examples/ `_ directory.

LICENSE
-------

This project and contents of this repo are licensed under Apache 2.0 License.