Actions
Feature #1855
closedApi Plugin
Start date:
2022-10-24
Estimated time:
Description
An api plugin should be implemented with which all api calls to the OpenAtlas instance can be executed.
Actions
Added by Andreas Olschnögger about 2 years ago. Updated about 2 years ago.
Description
An api plugin should be implemented with which all api calls to the OpenAtlas instance can be executed.
The api plugins is implemented. I suggest using the useAsyncData composable of nuxt as wrapper.
Example for the entity endpoint:
const {$api} = useNuxtApp();
const { data, pending, error, refresh } = await useAsyncData(() => $api.entity.entityDetail(20701));