Skip to content

Add an option to skip response formatting in Content/Admin API SDKs #73

Open

Description

@kevinansfield

Currently the content/admin api SDKs format the response that is received from the API.

We'd like to add a "format response" boolean option to the SDKs so that consumers have the option to skip formatting and receive the raw data that is returned from the API.

Our initial use-case for this is a tool that can automatically generate request/response documentation for our API.

Activity

  1. added
    enhancement
    on Apr 1, 2019
  2. self-assigned this
    on Apr 1, 2019
  3. therealbigzeez commented on Apr 18, 2020

    @therealbigzeez

    @kevinansfield So the the fix should allow something like:

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

    so the option formatted option can be passed along with these options and should default to true

  4. phawazzzy commented on Apr 18, 2020

    @phawazzzy

    @Robogeek95.. i agree with you on this...then we can just check the for config.formatResponse to know how the response will come ..weather formatted or not formatted

  5. nextwebb commented on Apr 21, 2020

    @nextwebb

    @kevinansfield @ErisDS where would be the right place to dig for a possible fix?

  6. added a commit that references this issue on May 8, 2020
    aa3be9d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions