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.
Updated by Andreas Olschnögger about 2 years ago
- Assignee changed from Andreas Olschnögger to Moritz Großfurtner
Updated by Andreas Olschnögger about 2 years ago
- Assignee changed from Moritz Großfurtner to Andreas Olschnögger
Updated by Andreas Olschnögger about 2 years ago
- Status changed from In Progress to Closed
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));
Actions