Skip to content

Index pagina onnodig complex #38

Description

@hnccox-yard

Beschrijf de bug
Het wp-json/owc/openagenda/v1/locations endpoint returned alle locaties MET alle locatie details en events

Te reproduceren
Stappen om het gedrag te reproduceren:

  1. Ga naar '/wp-json/owc/openagenda/v1/locations'
  2. Zie fout

Verwacht gedrag
Ik wil alleen een overzicht van alle locatie ID's met alleen de primary keys:
{
id: string,
title: string,
description: string,
excerpt: string,
slug: string,
post_status: string,
post_thumbnail: string,
}

De rest hoort hier echt allemaal NIET bij, daar heb je de '/wp-json/owc/openagenda/v1/locations/id/{id}' endpoint voor.

Ik hoef niet op de index pagina alle details zoals openingstijden en ALLE events te laden voor ELKE locatie.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions