From 28ad7b37433abe037e99283d4f0e2ad8daff0ea3 Mon Sep 17 00:00:00 2001 From: Grey Date: Mon, 10 Aug 2026 16:52:43 -0400 Subject: [PATCH 1/3] in example petition JSON response for authenticated REST API, update the image data format --- source/includes/authenticated_api/_partnerships.md | 4 ++-- source/includes/authenticated_api/_petitions.md.erb | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/includes/authenticated_api/_partnerships.md b/source/includes/authenticated_api/_partnerships.md index 596ba397ca8..bf76306af15 100644 --- a/source/includes/authenticated_api/_partnerships.md +++ b/source/includes/authenticated_api/_partnerships.md @@ -18,7 +18,7 @@ Partnerships are other organisations you collaborate with using the platform. "created_at": "2015-12-02T01:43:17Z", "updated_at": "2015-12-02T01:43:17Z", "url": "https://demo.controlshiftlabs.com/partnerships/fight-fascism", - "image": "https://cdn.example.com/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" + "image": "https://images.controlshift.app/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" }, { "id": 107, @@ -63,7 +63,7 @@ Get a paginated list of all partnerships. "created_at": "2015-12-02T01:43:17Z", "updated_at": "2015-12-02T01:43:17Z", "url": "https://demo.controlshiftlabs.com/partnerships/fight-fascism", - "image": "https://cdn.example.com/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" + "image": "https://images.controlshift.app/rails/active_storage/representations/proxy/eyJfcmFpbHMiOnsiZGF0YSI6ODI2Mzg5LCJ--f17a/OiJ2YXJpYXRpb24ifX0=--924a23c065f/a-little-teapot.png" } } ``` diff --git a/source/includes/authenticated_api/_petitions.md.erb b/source/includes/authenticated_api/_petitions.md.erb index 84ca622ab2b..20c4915caaf 100644 --- a/source/includes/authenticated_api/_petitions.md.erb +++ b/source/includes/authenticated_api/_petitions.md.erb @@ -56,12 +56,12 @@ Petition are pieces of content that can be signed by members. "ended_story": "This was an overwhelming success!", "image": { "urls": { - "open_graph": "http://cdn.example.com/petitions/images/25/open_graph/a-little-teapot.png?1516647704", - "horizontal": "http://cdn.example.com/petitions/images/25/horizontal/a-little-teapot.png?1516647704", - "hero": "http://cdn.example.com/petitions/images/25/hero/a-little-teapot.png?1516647704", - "original": "http://cdn.example.com/petitions/images/25/original/a-little-teapot.png?1516647704", - "form": "http://cdn.example.com/petitions/images/25/form/a-little-teapot.png?1516647704" + "original": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/a-little-teapot.png", + "landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/a-little-teapot.png", + "small_landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/a-little-teapot.png", + "social": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/a-little-teapot.png" }, + "caption": "This picture was taken by a human, not generated by AI.", "description": "Picture of a small teapot with flowers on it and money tucked under the lid" }, "public_signature_count": 234, From 35a0939275fcd7ee6d631d5f0ab4e45f95aaf0b6 Mon Sep 17 00:00:00 2001 From: Grey Date: Mon, 10 Aug 2026 16:53:05 -0400 Subject: [PATCH 2/3] update image URLs for public json API --- source/includes/json/_category_petitions.md | 32 +++++++++--------- source/includes/json/_featured_petitions.md | 33 +++++++++---------- .../includes/json/_partnership_petitions.md | 32 +++++++++--------- source/includes/json/_single_petition.md | 4 +-- 4 files changed, 50 insertions(+), 51 deletions(-) diff --git a/source/includes/json/_category_petitions.md b/source/includes/json/_category_petitions.md index 46ae6ccf40e..481e8508209 100644 --- a/source/includes/json/_category_petitions.md +++ b/source/includes/json/_category_petitions.md @@ -40,23 +40,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2015-12-02T01:43:17Z", "updated_at": "2017-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { @@ -92,23 +92,23 @@ $(document).ready(function(){ "locale": "en", "created_at": "2014-10-02T01:43:17Z", "updated_at": "2018-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { diff --git a/source/includes/json/_featured_petitions.md b/source/includes/json/_featured_petitions.md index 9cc1a1f84d9..316b03803c5 100644 --- a/source/includes/json/_featured_petitions.md +++ b/source/includes/json/_featured_petitions.md @@ -40,23 +40,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2014-10-02T01:43:17Z", "updated_at": "2018-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { @@ -104,24 +104,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2016-08-12T18:08:32Z", "updated_at": "2016-09-14T12:43:45Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/original/IMG_1854.JPG?1472046912", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ - ] { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/original/IMG_1854.JPG?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/form/IMG_1854.JPG?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/horizontal/IMG_1854.JPG?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/167492/open_graph/IMG_1854.JPG?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "location": { diff --git a/source/includes/json/_partnership_petitions.md b/source/includes/json/_partnership_petitions.md index 61c984f130b..a5240677c8d 100644 --- a/source/includes/json/_partnership_petitions.md +++ b/source/includes/json/_partnership_petitions.md @@ -40,23 +40,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2015-12-02T01:43:17Z", "updated_at": "2017-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { @@ -94,23 +94,23 @@ $(document).ready(function(){ "ended": false, "created_at": "2014-10-02T01:43:17Z", "updated_at": "2018-05-07T15:38:39Z", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "additional_image_sizes_url": [ { "style": "original", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "form", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/form/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "small_landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "horizontal", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/horizontal/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "landscape", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" }, { - "style": "open_graph", - "url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/open_graph/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741" + "style": "social", + "url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg" } ], "target": { diff --git a/source/includes/json/_single_petition.md b/source/includes/json/_single_petition.md index 971d6eb4d24..718c61ffb81 100644 --- a/source/includes/json/_single_petition.md +++ b/source/includes/json/_single_petition.md @@ -43,8 +43,8 @@ $(document).ready(function(){ "goal": 500, "effort": null, "partnership": null, - "resized_image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/hero/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", - "image_url": "https://d8s293fyljwh4.cloudfront.net/petitions/images/92283/original/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg?1473884741", + "resized_image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", + "image_url": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/2016-06-20-1466458252-1098096-ywllowbrickroad.jpg", "creator_name": "Kristyn Arrighi", "signature_count": 223, "location": { From 2eaa87cbf625929f440c0284afad6a1c95604583 Mon Sep 17 00:00:00 2001 From: Grey Date: Tue, 11 Aug 2026 15:19:44 -0400 Subject: [PATCH 3/3] update example authenticated API response for events to include the current set of fields --- .../includes/authenticated_api/_events.md.erb | 133 +++++++++++++----- 1 file changed, 98 insertions(+), 35 deletions(-) diff --git a/source/includes/authenticated_api/_events.md.erb b/source/includes/authenticated_api/_events.md.erb index 56a72a3da56..6114e379b23 100644 --- a/source/includes/authenticated_api/_events.md.erb +++ b/source/includes/authenticated_api/_events.md.erb @@ -16,6 +16,7 @@ The authenticated REST API endpoints for events only deal with events created in "title": "Deliver the Petition to the Wizard", "url": "https://demo.controlshiftlabs.com/events/deliver-the-petition-to-the-wizard", "description": "Join us as we travel to the Emerald City to deliver our petition to the Wizard.", + "rich_description": "

Join us as we travel to the Emerald City to deliver our petition to the Wizard.

", "start_at": "2018-03-01T12:00:00Z", "end_at": "2018-03-01T13:30:00Z", "start_in_zone": "2018-03-01T12:00:00-05:00", @@ -26,26 +27,31 @@ The authenticated REST API endpoints for events only deal with events created in "locale": "en-US", "host_address": null, "max_attendees_count": null, + "send_prompt_to_repeat": false, + "prompt_to_repeat_sent_at": 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" + "main_image": { + "urls": { + "original": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/a-little-teapot.png", + "landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/a-little-teapot.png", + "small_landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/a-little-teapot.png", + "social": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/a-little-teapot.png" + }, + "caption": "This picture was taken by a human, not generated by AI.", }, "location": { - "query": "wizard room", + "venue": "The Wizard's Throne Room", + "postal_code": "", + "country": "US", + "region": "MA", + "locality": "Anytown", "latitude": "42.3376368", "longitude": "-70.99304", - "street_number": "", + "query": "wizard room", "street": "", - "region": "MA", - "postal_code": "", - "country": "US", + "street_number": "", "created_at": "2017-11-16T22:38:29Z" }, - "location_venue": "The Wizard's Throne Room", "shifts": [ { "id": "103", @@ -61,22 +67,44 @@ The authenticated REST API endpoints for events only deal with events created in } ], "petition": { + "title": "Repair the Yellow Brick Road", "slug": "repair-the-yellow-brick-road-1", "url": "https://demo.controlshiftlabs.com/petitions/repair-the-yellow-brick-road-1" }, + "partnerships": [], "labels": ["oz-organizer-help"], + "predecessor_event": null, + "successor_event": null, + "campaigner_contactable": true, + "event_host_name_override": null, + "forum_enabled": true, + "hidden_address": false, + "hide_recent_attendees": false, + "location_venue": "The Wizard's Throne Room", + "redirect_to": null, + "sharing_disabled": false, + "web_conference_url": null, "bluesky_share_message": "Join us at this event!", "facebook_share_description": "Come deliver the petition with us", "facebook_share_title": "Deliver the Petition to the Wizard", "meta_title": "Deliver the Petition to the Wizard - Event", "meta_description": "Join us as we travel to the Emerald City", + "share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?", "twitter_share_description": "Join us in the Emerald City!", "twitter_share_message": "Attending this event to deliver our petition", "twitter_share_title": "Deliver the Petition to the Wizard", "web_share_api_share_message": "Check out this event in the Emerald City", "whatsapp_share_message": "I'm attending this event to deliver the petition. Join me!", - "share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?", - "disable_rsvp_form": false + "disable_rsvp_form": false, + "host": { + "member_id": 123, + "full_name": "Dorothy of Kansas", + "email": "dorothy@example.com", + "phone_number": "555-555-5555", + "postcode": "66012" + }, + "mentor": null, + "reviewer": null }, ... ], @@ -111,6 +139,7 @@ The response includes all the same data as the single-event endpoint for each ev "title": "Deliver the Petition to the Wizard", "url": "https://demo.controlshiftlabs.com/events/deliver-the-petition-to-the-wizard", "description": "Join us as we travel to the Emerald City to deliver our petition to the Wizard.", + "rich_description": "

Join us as we travel to the Emerald City to deliver our petition to the Wizard.

", "start_at": "2018-03-01T12:00:00Z", "end_at": "2018-03-01T13:30:00Z", "start_in_zone": "2018-03-01T12:00:00-05:00", @@ -121,50 +150,84 @@ The response includes all the same data as the single-event endpoint for each ev "locale": "en-US", "host_address": null, "max_attendees_count": null, + "send_prompt_to_repeat": false, + "prompt_to_repeat_sent_at": 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" + "main_image": { + "urls": { + "original": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--hijklmnop/a-little-teapot.png", + "landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--12345/a-little-teapot.png", + "small_landscape": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--qrstuv/a-little-teapot.png", + "social": "https://images.controlshift.app/rails/active_storage/representations/proxy/abc123defg--abcde/a-little-teapot.png" + }, + "caption": "This picture was taken by a human, not generated by AI.", }, "location": { - "query": "wizard room", + "venue": "The Wizard's Throne Room", + "postal_code": "", + "country": "US", + "region": "MA", + "locality": "Anytown", "latitude": "42.3376368", "longitude": "-70.99304", - "street_number": "", + "query": "wizard room", "street": "", - "region": "MA", - "postal_code": "", - "country": "US", + "street_number": "", "created_at": "2017-11-16T22:38:29Z" }, - "location_venue": "The Wizard's Throne Room", - "mentor": { - "member_id": 456, - "full_name": "Glinda the Good", - "email": "glinda@example.com", - "phone_number": "555-555-5555", - "postcode": "12345" - }, + "shifts": [ + { + "id": "103", + "name": "Lunch", + "start_at": "2018-03-01T12:00:00Z", + "end_at": "2018-03-01T13:00:00Z" + }, + { + "id": "105", + "name": "Demonstration", + "start_at": "2018-03-01T13:00:00Z", + "end_at": "2018-03-01T13:30:00Z" + } + ], "petition": { + "title": "Repair the Yellow Brick Road", "slug": "repair-the-yellow-brick-road-1", "url": "https://demo.controlshiftlabs.com/petitions/repair-the-yellow-brick-road-1" }, + "partnerships": [], "labels": ["oz-organizer-help"], + "predecessor_event": null, + "successor_event": null, + "campaigner_contactable": true, + "event_host_name_override": null, + "forum_enabled": true, + "hidden_address": false, + "hide_recent_attendees": false, + "location_venue": "The Wizard's Throne Room", + "redirect_to": null, + "sharing_disabled": false, + "web_conference_url": null, "bluesky_share_message": "Join us at this event!", "facebook_share_description": "Come deliver the petition with us", "facebook_share_title": "Deliver the Petition to the Wizard", "meta_title": "Deliver the Petition to the Wizard - Event", "meta_description": "Join us as we travel to the Emerald City", + "share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?", "twitter_share_description": "Join us in the Emerald City!", "twitter_share_message": "Attending this event to deliver our petition", "twitter_share_title": "Deliver the Petition to the Wizard", "web_share_api_share_message": "Check out this event in the Emerald City", "whatsapp_share_message": "I'm attending this event to deliver the petition. Join me!", - "share_by_email_body": "I'm attending this event and thought you might be interested. Will you join me?", - "disable_rsvp_form": false + "disable_rsvp_form": false, + "host": { + "member_id": 123, + "full_name": "Dorothy of Kansas", + "email": "dorothy@example.com", + "phone_number": "555-555-5555", + "postcode": "66012" + }, + "mentor": null, + "reviewer": null } } ```