Features:
- new hook
onCreateRequestParams
which allows modify request params (--extract-request-params
option) before sending it to route info
How to use:generateApi({ // ... your config, hooks: { onCreateRequestParams: (rawType) => { if (Object.keys(rawType.properties).length > 1) return rawType; return rawType; } } })
- response content types (array of string like
application/json
,image/png
) which allows to customize declaration of request response
Exist inprocedure-call.eta
templateit.route.response.contentTypes
Internal: