Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an option to skip response formatting in Content/Admin API SDKs #286

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

phawazzzy
Copy link

@phawazzzy phawazzzy commented May 8, 2020

closes #73

  • Added formatResponse option to the parameter that would be passed in the GhostAdminApi/GhostContentAPi
    -the formatResponse is default to true when not specified by consumer

This how it would look like
const api = new GhostContentAPI({
url: 'YOUR URL',
key: 'YOUR KEY',
version: "VERSION",
formatResponse: true/false
})

  • [x ] There's a clear use-case for this code change
  • [ x] Commit message has a short title & references relevant issues
  • [ x] The build will pass (run yarn test and yarn lint)

   closes TryGhost#73
     - Added formatResponse option to the parameter that would be passed in the GhostAdminApi/GhostContentAPi
     -the formatResponse is default to true when not specified by consumer
@Robogeek95
Copy link

This presents an option to skip formatting the returned response from the api

Base automatically changed from master to main February 16, 2021 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to skip response formatting in Content/Admin API SDKs
2 participants