Ghost/test/api-acceptance/admin
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
..
actions_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
config_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
db_spec.js Removed final non-destructured imports of core/server/lib/common (#11858) 2020-05-28 17:54:18 +01:00
email_preview_spec.js 🐛 Removed [http://url/] output in member email preview text 2020-08-12 20:14:06 +01:00
emails_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
images_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
integrations_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
invites_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
key_authentication_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
labels_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
mail_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
members_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
notifications_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
oembed_spec.js Fixed oembed test 2020-07-22 19:49:30 +01:00
pages_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
posts_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
roles_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
settings_spec.js Added migration to add settings.{group,flags} columns (#11951) 2020-06-24 11:58:15 +01:00
slugs_spec.js Moved config from server to shared (#11850) 2020-05-27 18:47:53 +01:00
tags_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00
themes_spec.js Change theme uploads to move & delete at end 2020-06-08 16:12:17 +01:00
users_spec.js Improved tests for "include=posts.count" query parameter 2020-08-31 17:30:21 +12:00
utils.js Added label to known filter params for members 2020-05-21 18:44:52 +01:00
webhooks_spec.js Added Location header to API's POST request responses (#12186) 2020-09-14 22:33:37 +12:00