Generating API documentation

?__apiDocuGenerate

When you are directly on some api url, you can use query parameter ?__apiDocuGenerate for generating whole application api. All documentation files will be available in directory specified by you. By default, the directory is:

apiDocu:
	apiDir: "%wwwDir%/api"


extensions:
	apiRouter: Ublaboo\ApiRouter\DI\ApiRouterExtension
	apiDocu: Ublaboo\ApiDocu\DI\ApiDocuExtension

Example api generation trigger is here: /api-router/api/books?__apiDocuGenerate

Demo

One generated documentation is available here: /client-api.

HTTP authorization

You can use a HTTP authorization on your documentation sites:

apiDocu:
	apiDir: "%wwwDir%/client-api"
	httpAuth:
		user: foo
		password: bar
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tím souhlasíte. V pořádku Další informace