Skip to content

Index pagina onnodig complex #68

@hnccox-yard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions