0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Allowed ?formats param in Admin API post+page create/edit requests

no issue

- `?formats` is useful when you want to get `html` back from the Admin API when creating/editing posts, otherwise you're forced to make a following `GET` request
This commit is contained in:
Kevin Ansfield 2020-06-18 13:59:01 +01:00
parent ea7d450a9b
commit 95525eeadc
2 changed files with 4 additions and 0 deletions

View file

@ -87,6 +87,7 @@ module.exports = {
headers: {},
options: [
'include',
'formats',
'source'
],
validation: {
@ -122,6 +123,7 @@ module.exports = {
options: [
'include',
'id',
'formats',
'source',
'force_rerender',
// NOTE: only for internal context

View file

@ -89,6 +89,7 @@ module.exports = {
headers: {},
options: [
'include',
'formats',
'source',
'send_email_when_published'
],
@ -124,6 +125,7 @@ module.exports = {
options: [
'include',
'id',
'formats',
'source',
'send_email_when_published',
'force_rerender',