0.0.13 • Published 2 years ago

@tyren/markdown-it-dokapi v0.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Dokapi

Cool markdown commands to render api documentation.

Package largely inspired by Markdown Extended

Route block

&&& [VERB] [path] [description]

Verb can be GET, POST, PUT, PATCH, DELETE

&&& GET /my/path My description

	Random markdown !

	Cool

Response block

&<< [status] [message]

Message will be unparsed if status is success (2xx)

&<< 200

	Response random markdown !

Copy / References

&## [keyword]

Defines a reference with the name keywords. The reference will include everything indented and written below.

&@@ [keyword]

Repeat the block stored in keyword reference

Allows to define responses or errors once and repeat it inside API.

&## error1
	&<< 404 Not Found

&&& GET /test/ Test route

	&<< 200

	&@@ error1

Future features ?

I might add additionnal commands in the future... Feel free to discuss it in issues.

  • Object Model ?
  • Process bloc ?
  • Request bloc ?
0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago