Reference · SemText · Definitions & citations
<sem-api-call>
SemText element
The definition card for an endpoint. You write the operation name, HTTP method and path, then one sem-api-param child per parameter or response field; the page shows a table and machines read the same fields back.
Example
sem-api-call.html
source
1
<sem-api-call name="Create token" method="POST" endpoint="/oauth/token" status="200">
2
Exchanges a grant for a token pair.
3
<sem-api-param name="grant_type" in="body" type="string" required allowed="authorization_code,refresh_token">The grant to exchange.</sem-api-param>
4
<sem-api-param name="code" in="body" type="string">The authorization code.</sem-api-param>
5
<sem-api-param name="ttl" in="response" type="integer">Access-token lifetime in seconds.</sem-api-param>
6
</sem-api-call>
render
Live render boots with JavaScript — the authored source is alongside.
Source: spec/schema/sem-api-call.md