在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:Wiredcraft/carte开源软件地址:https://github.com/Wiredcraft/carte开源编程语言:JavaScript 94.2%开源软件介绍:The "What ?" and the "Why ?"Carte is a simple Jekyll based documentation website for APIs. It is designed as a boilerplate to build your own documentation and is heavily inspired from Swagger and I/O docs. Fork it, add specifications for your APIs calls and customize the theme. Go ahead, see if we care. We built Carte because the existing options (Swagger and the likes) were trying to do too much and did not match our needs:
The real value of Carte is its structure for describing APIs, not its underlying technical stack (or lack-thereof). In a nutshell; we built a static template for your API documentation, feel free to re-use it. InstallIt' Jekyll god dammit:
How to...Adding a new API callYou can add a new API call by simply adding a new post in the Each API call can define a few values in its YAML header:
A typical header:
We then describe the request and response (or whatever else you wish to talk about) in the body of our post. Check the placeholders present in the Grouping callsAdding a category to your YAML header will allows you to group methods in the navigation. It is particularly helpful as you start having a lot of methods and need to organize them. For example:
Edit the designThe default UI is mostly described through the |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论