Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Improvements to the Testclient #132

Closed
wants to merge 4 commits into from

Conversation

michaelschnyder
Copy link

Changed

  • Testclient sends data always as json-strinified body

Improved

  • Display content of error resposes as plain-text or pretty-json if applicable

Added

  • Define your global headers (or any other jQueryAjax settings) in apidoc.json (See Example)

@rottmann
Copy link
Member

Added to next version 0.8.0.

Only append jQueryAjaxSetup to the template object in apidoc.json

{
  "name": "test",
  "version": "0.5.0",
  "description": "RESTful web API Documentation Generator",
  "url" : "https://api.github.com/v1",
  "sampleUrl": "https://api.github.com/v1",
  "template": {
    "withCompare": true,
    "withGenerator": true,
    "jQueryAjaxSetup": {
      "headers": {
        "X-Your-CustomHeader": "some value"
      }
    }
  }
}

Will look for a separation of plugin settings and layout-/template-settings in a future release.

@rottmann rottmann closed this Nov 10, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants