Rest API documentation - JSON schema mismatch with actual response

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Summary

      As in REST API Documentation the type field is set to object but in actual result it returns string:

      JSON Schema
      " },
      "content": {
      "title": "Content",
      "type": "object",
      "properties": {
      "id": {
      "title": "Content Id",
      "type": "object"
      },
      "type": { ----> type is object here!!
      "title": "Content Type",
      "type": "object"
      },"
      
      Actual Response
      "results": [
      {
      "id": "24413252",
      "type": "page",  ----> Type returns string here!!
      "status": "current",
      "title": "CodeCraft User Documentation Home",
      "history": {
      "latest": true,
      "createdBy": {
      .....
      

      Suggestion

      Update the REST API documentation according to the source code.

            Assignee:
            Franco Skrzypczak (Inactive)
            Reporter:
            Cihan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: