Code Monkey home page Code Monkey logo

yancy-plugin-openapi's Introduction

NAME

Yancy::Plugin::OpenAPI - Generate an OpenAPI spec and API for a Yancy schema

VERSION

version 0.002

SYNOPSIS

use Mojolicious::Lite;
plugin Yancy => 'sqlite:data.db';
plugin OpenAPI => { route => '/api' };
app->start;

DESCRIPTION

This plugin generates an OpenAPI specification from your database schema. The generated spec has endpoints to create, read, update, delete, and search for items in your database.

CONFIGURATION

These configuration keys can be part of the hash reference passed to the plugin call.

route

The base route path for the generated API. Can be a string or a Mojolicious::Routes object.

title

The title of the API, used in the OpenAPI spec. See also "info".

info

The info section of the OpenAPI spec. A hash reference.

host

The host key of the OpenAPI spec. Defaults to the value of "hostname" in Sys::Hostname.

model

The Yancy::Model object to use. Defaults to "model" in Mojolicious::Plugin::Yancy.

default_controller

The default controller to use for generated API routes. Defaults to yancy, the Yancy::Controller::Yancy controller.

SEE ALSO

Mojolicious::Plugin::OpenAPI, Yancy

AUTHOR

Doug Bell [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

yancy-plugin-openapi's People

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.