Project

General

Profile

Actions

Feature #1855

closed

Api Plugin

Added by Andreas Olschnögger about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
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 #1

Updated by Andreas Olschnögger about 2 years ago

  • Assignee changed from Andreas Olschnögger to Moritz Großfurtner
Actions #2

Updated by Andreas Olschnögger about 2 years ago

  • Assignee changed from Moritz Großfurtner to Andreas Olschnögger
Actions #3

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

Also available in: Atom PDF