Ghost/core/server/api/canary
naz cbdc91ce48
Added Location header to API's POST request responses (#12186)
refs #2635

- Adds 'Location' header to endpoints which create new resources and have corresponding `GET` endpoint as speced in JSON API - https://jsonapi.org/format/#crud-creating-responses-201. Specifically:
    /posts/
    /pages/
    /integrations/
    /tags/
    /members/
    /labels/
    /notifications/
    /invites/

- Adding the header should allow for better resource discoverability and improved logging readability
- Added `url` property to the frame constructor. Data in `url` should give enough information  to later build up the `Location` header URL for created resource.
- Added Location header to headers handler. The Location value is built up from a combination of request URL and the id that is present in the response for the resource. The header is automatically added to requests coming to `add` controller methods which return `id` property in the frame result
- Excluded Webhooks API  as there is no "GET" endpoint available to fetch the resource
2020-09-14 22:33:37 +12:00
..
utils Updated boolean values validations for members uploads 2020-08-26 17:23:36 +12:00
actions.js Updated canary actions endpoint 2019-08-14 17:40:36 +08:00
authentication.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
authors-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
config.js Added mailgunIsConfigured prop to config API 2020-07-03 11:48:47 +02:00
db.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
email-preview.js Updated status and error message for newsletter email failures 2020-07-17 13:54:09 +05:30
email.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
identities.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
images.js 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30
index.js Added membersStripeConnect controller auth method 2020-06-02 15:28:42 +02:00
integrations.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
invites.js Extracted core/server/lib/security to @tryghost/security package 2020-08-11 14:06:50 +01:00
labels.js Added more specific error handling when adding duplicate labels 2020-06-05 00:23:10 +12:00
mail.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
members.js 🐛 Fixed table constraint error when updating member's email with an already existing email (#12178) 2020-09-10 16:03:57 +12:00
memberSigninUrls.js Replaced all usage of member models with members-api (#12117) 2020-08-12 14:17:44 +01:00
membersStripeConnect.js Supported test mode in members_stripe_connect API 2020-06-10 14:06:57 +02:00
notifications.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
oembed.js 🐛 Fixed embed/bookmark retrieval for sites that require cookies during redirects 2020-06-17 10:03:36 +01:00
pages-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
pages.js Allowed ?formats param in Admin API post+page create/edit requests 2020-06-18 13:59:01 +01:00
posts-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
posts.js Changed member limit to be DRY & use raw query 2020-07-26 20:49:30 +01:00
preview.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
redirects.js 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30
roles.js 💡 Added canary api endpoint 2019-08-09 20:46:49 +05:30
schedules.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
session.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
settings-public.js Moved core/server/lib/url-utils to core/shared/url-utils (#11856) 2020-05-28 11:57:02 +01:00
settings.js Added routes.yaml content checksum storage to the db 2020-09-10 10:54:57 +12:00
site.js Renamed settings key brand.primaryColor to accent_color 2020-06-24 14:18:13 +12:00
slack.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
slugs.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
tags-public.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
tags.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
themes.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
users.js Refactored common lib import to use destructuring (#11835) 2020-05-22 19:22:20 +01:00
webhooks.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00