Git Product home page Git Product logo

swagger-example's Introduction

Swagger 3 (OpenApi) example

Specification

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md

Laravel Mix copy redoc js to public/js directory

mix.copy('node_modules/redoc/bundles/redoc.standalone.js', 'public/js/redoc.standalone.js')

Laravel Blade template

composer require darkaonline/l5-swagger 5.7.*
@extends('layouts.master')

@section('title', config('l5-swagger.api.title'))

@push('css')
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700|Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
<link rel="icon" type="image/png" href="{{ l5_swagger_asset('favicon-32x32.png') }}" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ l5_swagger_asset('favicon-16x16.png') }}" sizes="16x16" />
@endpush

@push('js')
<script src="{{ asset('js/redoc.standalone.js') }}"></script>
@endpush

@section('body')
<redoc spec-url='{{ $urlToDocs }}'></redoc>
@endsection

swagger-example's People

Contributors

jenky avatar

Watchers

 avatar  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.