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:
- Ga naar '/wp-json/owc/openagenda/v1/locations'
- 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.
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:
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.