summaryrefslogtreecommitdiff
path: root/src/client/docs/api/endpoints/view.pug
blob: d271a5517aeaef73bec11818cc46a8cdc479222e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
extends ../../layout.pug
include ../mixins

block meta
	link(rel="stylesheet" href="/assets/api/endpoints/style.css")

block main
	h1= endpoint

	p#url
		span.method POST
		span.host
			= url.host
			| /
		span.path= url.path

	p#desc= desc[lang] || desc['ja']

	section
		h2 %i18n:docs.api.endpoints.params%
		+propTable(params)

		if paramDefs
			each paramDef in paramDefs
				section(id= paramDef.name)
					h3= paramDef.name
					+propTable(paramDef.params)

	if res
		section
			h2 %i18n:docs.api.endpoints.res%
			+propTable(res)