Skip to content

Instantly share code, notes, and snippets.

@desaroxx
Last active September 20, 2016 13:27
Show Gist options
  • Save desaroxx/30a117e3a2962681b3ea14b6f2e5016d to your computer and use it in GitHub Desktop.
Save desaroxx/30a117e3a2962681b3ea14b6f2e5016d to your computer and use it in GitHub Desktop.

Endpoint

Relative facade endpoint:

POST /portal/skillmanagement/readInheritedRequirements

Request

request.body:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "type": {
        "type": "string"
      },
      "id": {
        "type": "string"
      }
    },
    "required": ["type", "id"]
  }
}

Response

Contains already all requested requirements which are already merged.

response.body:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "endDate": {
        "type": ["string", "null"],
        "format": "date-time"
      },
      "id": {
        "type": "string"
      },
      "lastChanged": {
        "type": "number"
      },
      "mandatory": {
        "type": "boolean"
      },
      "startDate": {
        "type": ["string", "null"],
        "format": "date-time"
      },
      "tag": {
        "type": "object",
        "properties": {
          "description": {
            "type": ["string", "null"]
          },
          "id": {
            "type": "string"
          },
          "lastChanged": {
            "type": "number"
          },
          "name": {
            "type": "string"
          }
        },
        "required": ["description", "id", "lastChanged", "name"]
      }
    },
    "required": ["endDate", "id", "mandatory", "lastChanged", "startDate", "tag"]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment