Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
    "apis": [
      {
        "name": "createContent",
        "uris": "/content/v1/create",
        "upstream_url": "http://knowledge-mw:5000/v1/content/create",
        "checks": [
          {
            "checkType": "roleCheck",
            "key": "token",
            "token": "CONTENT_CREATOR, COURSE_CREATOR"
          },
          {
            "checkType": "orgCheck",
            "key": "body",
            "body": "request.content.createdFor[*]"
          },
          {
            "checkType": "ownerCheck",
            "key": "header || body",
            "body": "request.userId",
            "header": "X-User-Id"
          }
        ]
      }
    ]
  }

...