GithubHelp home page GithubHelp logo

swagger-ui's Introduction

汉化swagger-ui

汉化了swagger-ui,修改了部分样式 演示地址:http://helei112g.github.io/swagger-ui/#/

修改文件

  • swagger-ui.js,修改了部分js,在首页上,增加了显示api发布时间的tag
  • lang/zh-CN.js,在lang文件中,增加了中文语言包,其中由于部分使用英文表达更准确,未更改
  • index.html,修改了初始化swagger,为期增加了一个初始化加载完成后的回调
  • screen.css,为了显示接口创建时间,修改了部分样式

使用方法

  1. 直接clone该项目到本地,运行index.html文件,课获得我的demo样式
  2. 根据自身实际情况修改demo.json文件,已完成自身api接口文档的书写
  3. 如果json文件是在线的,请求改index.html文件中url = "http://192.168.1.8/api/demo.json";,将online url地址写在这里。

与我交流

第一个自己的github项目,如果对有何指教,欢迎联系:

e-mail:[email protected]

blog: http://blog.csdn.net/hel12he

swagger-ui's People

Contributors

helei112g avatar

Watchers

James Cloos 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.