POST /listApi

Request

{
  "apiName": "qwerty", //required
  "apiUrl": "lms/checkVKYSStatus/{{field.5302}}", //required
  "token": "pyFunc", //optional
  "authorization": 12, //optional
  "signKey": 23, //optional
  "encryptKey": 30851, //optional
  "expKey": "",
  "headers": "",
  "expKey": "",
  "parentId": "",
  "enviroment": ""
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "listApi": {
	  	"listApiId": 2
		  "apiName": "external service 1", 
		  "apiUrl": "<https://stage.extService.com>", 
		  "token": "12345", 
		  "authorization": "Bearer", 
		  "signKey": "", 
		  "encryptKey": "", 
		  "expKey": "",
		  "headers": "",
		  "expKey": "",
		  ~~"apiUrlStage": "",
		  "apiUrlProd": "",~~
		  "parentId": "",
		  "enviroment": "stage"
  }
}

PATCH /listApi

Request

{
	"listApiId": 2
  "apiName": 3, //required
  "apiUrl": "lms/checkVKYSStatus/{{field.5302}}", //required
  "token": "pyFunc", //optional
  "authorization": 12, //optional
  "signKey": 23, //optional
  "encryptKey": 30851, //optional
  "expKey": "",
  "headers": "",
  "expKey": "",
  ~~"apiUrlStage": "",
  "apiUrlProd": "",~~
  "parentId": "",
  "enviroment": ""
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "listApi": {
	  	"listApiId": 2
		  "apiName": 3, 
		  "apiName": "external service 1", 
		  "apiUrl": "<https://stage.extService.com>", 
		  "token": "12345", 
		  "authorization": "Bearer", 
		  "signKey": "", 
		  "encryptKey": "", 
		  "expKey": "",
		  "headers": "",
		  "expKey": "",
		  ~~"apiUrlStage": "",
		  "apiUrlProd": "",~~
		  "parentId": "",
		  "enviroment": "stage"
  }
}

GET /listApi?q=string&type=url&offset=0

GET /listApi?q=string&type=name&offset=0

Request

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

Response

{
  "status": 1,
  "message": "",
  "response": {
    "listApi": [
      {
        "listApiId": 2,
        "apiName": "external service 1", 
			  "apiUrl": "<https://stage.extService.com>", 
			  "token": "12345", 
			  "authorization": "Bearer", 
			  "signKey": "", 
			  "encryptKey": "", 
			  "expKey": "",
			  "headers": "",
			  "expKey": "",
			  ~~"apiUrlStage": "",
			  "apiUrlProd": "",~~
			  "parentId": "",
			  "enviroment": "stage"
      },
      {
        "listApiId": 3,
        "apiName": "external service 2", 
			  "apiUrl": "<https://stage.extService2.com>", 
			  "token": "12345", 
			  "authorization": "Bearer", 
			  "signKey": "", 
			  "encryptKey": "", 
			  "expKey": "",
			  "headers": "",
			  "expKey": "",
			  ~~"apiUrlStage": "",
			  "apiUrlProd": "",~~
			  "parentId": "",
			  "enviroment": "stage"
      }
    ],
    "offset": 0,
    "total": 2
  }
}

GET /listApi/{listApi_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {
    "listApi": {
      "listApiId": 2,
      "apiName": "external service 1", 
		  "apiUrl": "<https://stage.extService.com>", 
		  "token": "12345", 
		  "authorization": "Bearer", 
		  "signKey": "", 
		  "encryptKey": "", 
		  "expKey": "",
		  "headers": "",
		  "expKey": "",
		  ~~"apiUrlStage": "",
		  "apiUrlProd": "",~~
		  "parentId": "",
		  "enviroment": "stage"
    },
    "offset": 0,
    "total": 2
  }
}

DELETE /listApi/{listApi_id}

Request

Response

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