Skip to content

Access to revisions #296

@polyclick

Description

@polyclick

Describe the solution you'd like

It would be great to have a way to access revision collection data. When you enable access to the directus_revisions collection in directus an api endpoint is available at {directus-host}/revisions, this is different than the usual /items/{collection} API endpoints

Describe alternatives you've considered

At the moment I don't see another solution than to manually setup the fetch() myself, circumventing the nuxt-directive

Additional context

const fetchRevisions = async () => {
  try {
    const response = await $fetch('http://0.0.0.0:8055/revisions')
    console.log(response.data)
    // return response.data
  } catch (error) {
    console.error('Error fetching revisions:', error)
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions