From 7005d29dddf61d72783a9a73809471738b6d57e3 Mon Sep 17 00:00:00 2001 From: Grey Moore Date: Fri, 2 Aug 2024 16:56:56 -0400 Subject: [PATCH] Indicate that CORS is supported on 11 more endpoints (#154) --- source/includes/json/_calendar.md | 2 +- source/includes/json/_categories_list.md | 2 +- source/includes/json/_category_petitions.md | 2 +- source/includes/json/_effort_petitions.md | 2 +- source/includes/json/_effort_petitions_near.md | 2 +- source/includes/json/_featured_petitions.md | 2 +- source/includes/json/_local_details.md | 2 +- source/includes/json/_local_points.md | 2 +- source/includes/json/_partnership_petitions.md | 2 +- source/includes/json/_petitions_search.md | 2 +- source/includes/json/_single_petition.md | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/source/includes/json/_calendar.md b/source/includes/json/_calendar.md index 763cdde58d2..48e0d8b05cc 100644 --- a/source/includes/json/_calendar.md +++ b/source/includes/json/_calendar.md @@ -37,7 +37,7 @@ This retrieves a JSON object representing a calendar. Where slug is the slug of the calendar you're retrieving. -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported
diff --git a/source/includes/json/_categories_list.md b/source/includes/json/_categories_list.md index be7aee89f83..4c7caef7db4 100644 --- a/source/includes/json/_categories_list.md +++ b/source/includes/json/_categories_list.md @@ -45,7 +45,7 @@ This retrieves a JSON array of category objects. `GET https://demo.controlshiftlabs.com/categories.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported #### Working Example diff --git a/source/includes/json/_category_petitions.md b/source/includes/json/_category_petitions.md index 85a93321b60..46ae6ccf40e 100644 --- a/source/includes/json/_category_petitions.md +++ b/source/includes/json/_category_petitions.md @@ -150,7 +150,7 @@ This retrieves a paginated list of petitions in a category. `GET https://demo.controlshiftlabs.com/categories/.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported #### Query Parameters diff --git a/source/includes/json/_effort_petitions.md b/source/includes/json/_effort_petitions.md index 517b051cf34..c882ceee0bf 100644 --- a/source/includes/json/_effort_petitions.md +++ b/source/includes/json/_effort_petitions.md @@ -137,7 +137,7 @@ Additionally, successful petitions will have the `successful` attribute set to ` `GET https://demo.controlshiftlabs.com/efforts/.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported Parameter | Default | Description diff --git a/source/includes/json/_effort_petitions_near.md b/source/includes/json/_effort_petitions_near.md index a31f8a4da52..d42e1856e19 100644 --- a/source/includes/json/_effort_petitions_near.md +++ b/source/includes/json/_effort_petitions_near.md @@ -57,7 +57,7 @@ Depending on how the effort is configured, you can search either by location, or `GET https://demo.controlshiftlabs.com/efforts//lookup/query.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported #### Query Parameters diff --git a/source/includes/json/_featured_petitions.md b/source/includes/json/_featured_petitions.md index c7b35a217c2..9cc1a1f84d9 100644 --- a/source/includes/json/_featured_petitions.md +++ b/source/includes/json/_featured_petitions.md @@ -155,7 +155,7 @@ This retrieves a JSON object compliant with the [JSON API](http://jsonapi.org/) `GET https://demo.controlshiftlabs.com/petitions/featured.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported #### Query Parameters diff --git a/source/includes/json/_local_details.md b/source/includes/json/_local_details.md index 7af8775f039..83c6a18f0ba 100644 --- a/source/includes/json/_local_details.md +++ b/source/includes/json/_local_details.md @@ -54,7 +54,7 @@ It can be used alongside the `/api/local/points` endpoint; the criteria for incl `GET https://demo.controlshiftlabs.com/api/local.json` -- × CORS not supported +- ✓ CORS supported - × JSONP not supported #### Query Parameters diff --git a/source/includes/json/_local_points.md b/source/includes/json/_local_points.md index 53f5c2fc1fe..c77ed8405af 100644 --- a/source/includes/json/_local_points.md +++ b/source/includes/json/_local_points.md @@ -43,7 +43,7 @@ This JSON endpoint returns a complete list of latitude/longitude coordinates for `GET https://demo.controlshiftlabs.com/api/local/points.json` -- × CORS not supported +- ✓ CORS supported - × JSONP not supported
diff --git a/source/includes/json/_partnership_petitions.md b/source/includes/json/_partnership_petitions.md index 8da0db5a578..61c984f130b 100644 --- a/source/includes/json/_partnership_petitions.md +++ b/source/includes/json/_partnership_petitions.md @@ -151,7 +151,7 @@ This retrieves a paginated list of petitions in a partnership. `GET https://demo.controlshiftlabs.com/partnerships//petitions.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported #### Query Parameters diff --git a/source/includes/json/_petitions_search.md b/source/includes/json/_petitions_search.md index ff6b38cccfa..77e17c9602d 100644 --- a/source/includes/json/_petitions_search.md +++ b/source/includes/json/_petitions_search.md @@ -126,7 +126,7 @@ This JSON endpoint allows you to build an interface where users can search throu `GET https://demo.controlshiftlabs.com/petitions/search.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported #### Query Parameters diff --git a/source/includes/json/_single_petition.md b/source/includes/json/_single_petition.md index 6e1b6278bc0..971d6eb4d24 100644 --- a/source/includes/json/_single_petition.md +++ b/source/includes/json/_single_petition.md @@ -71,7 +71,7 @@ This retrieves a single petition object. `GET https://demo.controlshiftlabs.com/petitions/.json` -- × CORS not supported +- ✓ CORS supported - ✓ JSONP supported #### Query Parameters