From 37b4104dad06f1f6f613c7b4f021cae88cecd4f5 Mon Sep 17 00:00:00 2001 From: Grey Moore Date: Tue, 10 Sep 2024 12:23:23 -0400 Subject: [PATCH] Include host in authenticated API responses for events (#157) --- .../includes/authenticated_api/_events.md.erb | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/includes/authenticated_api/_events.md.erb b/source/includes/authenticated_api/_events.md.erb index ec41f1911ed..2a588cedd7c 100644 --- a/source/includes/authenticated_api/_events.md.erb +++ b/source/includes/authenticated_api/_events.md.erb @@ -27,6 +27,13 @@ The authenticated REST API endpoints for events only deal with events created in "host_address": null, "max_attendees_count": null, "external_id": "control-shift-deliver-the-petition-to-the-wizard", + "host": { + "member_id": 123, + "full_name": "Dorothy of Kansas", + "email": "dorothy@example.com", + "phone_number": "555-555-5555", + "postcode": "66012" + }, "location": { "query": "wizard room", "latitude": "42.3376368", @@ -103,6 +110,13 @@ The response includes all the same data as the single-event endpoint for each ev "host_address": null, "max_attendees_count": null, "external_id": "control-shift-deliver-the-petition-to-the-wizard", + "host": { + "member_id": 123, + "full_name": "Dorothy of Kansas", + "email": "dorothy@example.com", + "phone_number": "555-555-5555", + "postcode": "66012" + }, "location": { "query": "wizard room", "latitude": "42.3376368", @@ -203,6 +217,13 @@ the event `slug` is `chapter-meeting-1`. "locale": "en-US", "host_address": null, "max_attendees_count": null, + "host": { + "member_id": 234, + "full_name": "Gabrielle Giffords", + "email": "gabrielle.giffords@example.com", + "phone_number": null, + "postcode": null + }, "location": { "latitude": 39.168100, "longitude": -94.776063,