Scribe可以帮助您自动生成文档,但是如果您真的想制作友好,可维护和可测试的API文档,则还需要了解更多信息。所以我为你做了一门课程。🤗

Shalvah 028d6064a5 Merge pull request #377 from james2doyle/missing-headings %!s(int64=3) %!d(string=hai) anos
.github 640cadbb96 Run CI on 8.1 %!s(int64=3) %!d(string=hai) anos
camel 4351be8567 Show empty array in examples - Fix #366 %!s(int64=3) %!d(string=hai) anos
config 25cbdc193f Add prerequest hook %!s(int64=3) %!d(string=hai) anos
resources 028d6064a5 Merge pull request #377 from james2doyle/missing-headings %!s(int64=3) %!d(string=hai) anos
routes b859f9ac7d Fix Lumen routing for docs (fixes #365) %!s(int64=3) %!d(string=hai) anos
src 9f94ee122c Fix missing headings in sidebar %!s(int64=3) %!d(string=hai) anos
tests 1c4e9f9dc4 Feat nested relations %!s(int64=3) %!d(string=hai) anos
.editorconfig 24d3f6aa22 Add some dotfiles %!s(int64=9) %!d(string=hai) anos
.gitattributes c3a31009ba Support spatie/dto 3 %!s(int64=3) %!d(string=hai) anos
.gitignore a81b4a86b9 Refactor tests %!s(int64=5) %!d(string=hai) anos
.travis.yml c91eed5499 Update CI %!s(int64=3) %!d(string=hai) anos
CHANGELOG.md d61afc3876 3.17.0 %!s(int64=3) %!d(string=hai) anos
CONTRIBUTING.md 6457ea46f4 Add contribution guide %!s(int64=5) %!d(string=hai) anos
LICENSE.md d1a9a81509 3.2.0 %!s(int64=3) %!d(string=hai) anos
README.md 058559e9b2 Fix Ci %!s(int64=3) %!d(string=hai) anos
composer.dingo.json d17cd655b4 Switch Upgrader to external package %!s(int64=3) %!d(string=hai) anos
composer.json d17cd655b4 Switch Upgrader to external package %!s(int64=3) %!d(string=hai) anos
composer.lowest.json 769fedbb3a Fix CI %!s(int64=3) %!d(string=hai) anos
logo-scribe.png 908fd36b04 Update doc %!s(int64=5) %!d(string=hai) anos
phpstan.neon 6d3201e961 Fix lint %!s(int64=3) %!d(string=hai) anos
phpunit.xml 5433e4ba15 Implement inline validator support %!s(int64=4) %!d(string=hai) anos

README.md

Scribe

Latest Stable Version Total Downloads


v3 is out now!

Scribe helps you generate API documentation for humans from your Laravel/Lumen/Dingo codebase. See a live example at demo.scribe.knuckles.wtf. There's a Node.js version, too!

Features

  • Pretty single-page HTML doc, with human-friendly text, code samples, and included in-browser API tester ("Try It Out")
  • Extracts body parameters details from FormRequests or validation rules
  • Safely calls API endpoints to get sample responses
  • Supports generating responses from Transformers or Eloquent API Resources
  • Generates Postman collection and OpenAPI spec
  • Easily customisable with custom views and included UI components
  • Easily extensible with custom strategies
  • Statically define extra endpoints that aren't in your codebase

👋 Scribe helps you generate docs automatically, but if you really want to make friendly, maintainable and testable API docs, there's some more things you need to know. So I made a course for you.🤗

Documentation

Check out the documentation at scribe.knuckles.wtf/laravel.

v2 docs (PHP 7.2+, not actively maintained) are at scribe.rtfd.io.

If you're coming from mpociot/laravel-apidoc-generator, there's a migration guide.

Contributing

Contributing is easy! See our contribution guide.