Use API
::: note
You need to create Height
instance to use APIs.
Read Setup page to know how to create Height
instance.
:::
How to use APIs
All apis in OpenAPI Specification are implemented in this package.
When you are using API in TypeScript, just remember the following rules:
- Path parameters in OpenAPI Specification is combined to request body in this package.
ex: /tasks/:id
->
height.tasks.get({ id: '...' })` - Query parameters of GET requests in OpenAPI Specification is combined to request body in this package.
ex: /activities?taskId=...
->
height.activities.get({ taskId: '...' })` - Query parameters of other requests in OpenAPI Specification is combined to request body with
queryParams
property ex: /tasks/:id/?filters=...->
height.tasks.update({ id: '...', queryParams: { filters: {...} } })`