GET /instances

(табл instances)

Request

Response

{
  "status": 1,
  "message": "",
  "response": {
		"instances": [
			{
				"instanceId": 1,
				"name": "ru",
				"keepalive": "2023-09-11 13:44:07.000000",
				"userAccessExp": 180,
				"userRefreshExp": 600,
				"isMaintenance": true,
				"maintenanceUp": "2023-09-11 13:44:07.000000",
				"maintenanceDown": "2023-09-11 13:44:07.000000",
				"maintenanceText": "",
				"apiVersion": "1.0.0",
			},
			{
				"instanceId": 2,
				"name": "india",
				"keepalive": "2023-09-11 13:44:07.000000",
				"userAccessExp": 180,
				"userRefreshExp": 600,
				"isMaintenance": true,
				"maintenanceUp": "2023-09-11 13:44:07.000000",
				"maintenanceDown": "2023-09-11 13:44:07.000000",
				"maintenanceText": "",
				"apiVersion": "1.0.0",
			},
		]
	}
}

POST /endpoints

Request

{
  "instanceId": 3, //required
  "endpointUrl": "lms/checkVKYSStatus/{{field.5302}}", //required
  "function": "pyFunc", //optional
  "logId": 12, //optional
  "apiMethodId": 23, //optional
  "nodeFuncId": 30851, //optional
  "requestJson": { //optional
    "limit": "{{field.5302}}",
    "period": "{{field.5339}}",
    "documentType": "KeyFactStatement",
    "optionalServices": [
      {
        "id": 49,
        "active": "{{field.5328}}"
      }
    ]
  },
  "responseJson": { //optional
    "status": "{{field.5849}}",
    "message": null,
    "response": "{{field.6082}}"
  }
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "endpoint": {
      "endpointId": 123,
      "instanceId": 3,
      "endpointUrl": "lms/checkVKYSStatus/{{field.5302}}",
      "function": "pyFunc",
      "logId": 12,
      "apiMethodId": 23,
      "nodeFuncId": 30851,
      "requestJson": {
        "limit": "{{field.5302}}",
        "period": "{{field.5339}}",
        "documentType": "KeyFactStatement",
        "optionalServices": [
          {
            "id": 49,
            "active": "{{field.5328}}"
          }
        ]
      },
      "responseJson": {
        "status": "{{field.5849}}",
        "message": null,
        "response": "{{field.6082}}"
      }
    },
    "offset": 0,
    "total": 2
  }
}

PATCH /endpoints

Request

{
	"endpointId": 123, //required
  "instanceId": 3, //optional
  "endpointUrl": "lms/checkVKYSStatus/{{field.5302}}", //optional
  "function": "pyFunc", //optional
  "logId": 12, //optional
  "apiMethodId": 23, //optional
  "nodeFuncId": 30851, //optional
  "requestJson": { //optional
    "limit": "{{field.5302}}",
    "period": "{{field.5339}}",
    "documentType": "KeyFactStatement",
    "optionalServices": [
      {
        "id": 49,
        "active": "{{field.5328}}"
      }
    ]
  },
  "responseJson": { //optional
    "status": "{{field.5849}}",
    "message": null,
    "response": "{{field.6082}}"
  }
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "endpoint": {
      "endpointId": 123,
      "instanceId": 3,
      "endpointUrl": "lms/checkVKYSStatus/{{field.5302}}",
      "function": "pyFunc",
      "logId": 12,
      "apiMethodId": 23,
      "nodeFuncId": 30851,
      "requestJson": {
        "limit": "{{field.5302}}",
        "period": "{{field.5339}}",
        "documentType": "KeyFactStatement",
        "optionalServices": [
          {
            "id": 49,
            "active": "{{field.5328}}"
          }
        ]
      },
      "responseJson": {
        "status": "{{field.5849}}",
        "message": null,
        "response": "{{field.6082}}"
      }
    },
    "offset": 0,
    "total": 2
  }
}

GET /endpoints?q=string&offset=0

Request

q - регистронезависимая подстрока endpoint_url

Response

{
  "status": 1,
  "message": "",
  "response": {
    "endpoints": [
      {
        "endpointId": 123,
        "instanceId": 3,
        "endpointUrl": "lms/checkVKYSStatus/{{field.5302}}",
        "function": "pyFunc",
        "logId": 12,
        "apiMethodId": 23,
        "nodeFuncId": 30851,
        "requestJson": {
          "limit": "{{field.5302}}",
          "period": "{{field.5339}}",
          "documentType": "KeyFactStatement",
          "optionalServices": [
            {
              "id": 49,
              "active": "{{field.5328}}"
            }
          ]
        },
        "responseJson": {
          "status": "{{field.5849}}",
          "message": null,
          "response": "{{field.6082}}"
        }
      },
      {
        "endpointId": 321,
        "instanceId": 3,
        "endpointUrl": "lms/checkVKYSStatus/{{field.5302}}",
        "function": "pyFunc",
        "logId": 12,
        "apiMethodId": 23,
        "nodeFuncId": 30851,
        "requestJson": {
          "limit": "{{field.5302}}",
          "period": "{{field.5339}}",
          "documentType": "KeyFactStatement",
          "optionalServices": [
            {
              "id": 49,
              "active": "{{field.5328}}"
            }
          ]
        },
        "responseJson": {
          "status": "{{field.5849}}",
          "message": null,
          "response": "{{field.6082}}"
        }
      }
    ],
    "offset": 0,
    "total": 2
  }
}

GET /endpoints/{endpoint_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {
    "endpoint": {
      "endpointId": 123,
      "instanceId": 3,
      "endpointUrl": "lms/checkVKYSStatus/{{field.5302}}",
      "function": "pyFunc",
      "logId": 12,
      "apiMethodId": 23,
      "nodeFuncId": 30851,
      "requestJson": {
        "limit": "{{field.5302}}",
        "period": "{{field.5339}}",
        "documentType": "KeyFactStatement",
        "optionalServices": [
          {
            "id": 49,
            "active": "{{field.5328}}"
          }
        ]
      },
      "responseJson": {
        "status": "{{field.5849}}",
        "message": null,
        "response": "{{field.6082}}"
      }
    },
    "offset": 0,
    "total": 2
  }
}

DELETE /apiMethods/{method_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {}
}