GET /apiMethods/types

Значения из references_api_methods_types

Request

Response

{
  "status": 1,
  "message": "",
  "response": {
		"types": [
			{
				"id": 1,
				"method": "POST"
			},
			{
				"id": 2,
				"method": "GET"
			},
			{
				"id": 3,
				"method": "PUT"
			}
		]
	}
}

POST /apiMethods

Request

{
  "apiId": 28, //required
  "typeId": 1, //required
  "methodUrl": "/api/Order/status/{{api.externalId}}", //required
  "methodName": "applicationStatusTakePhotos", //required
  "requestJson": { //optional
    "clientId": "{{api.externalId}}",
    "applicationStatus": "TakePhotos"
  },
  "responseJson": { //optional
    "status": 1,
    "message": null,
    "response": {
      "succes": 1,
      "clientId": "{{api.externalId}}"
    }
  }
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "apiMethod": {
      "id": 23,
      "apiId": 28,
      "typeId": 1,
      "methodUrl": "/api/Order/status/{{api.externalId}}",
      "methodName": "applicationStatusTakePhotos",
      "requestJson": {
        "clientId": "{{api.externalId}}",
        "applicationStatus": "TakePhotos"
      },
      "responseJson": {
        "status": 1,
        "message": null,
        "response": {
          "succes": 1,
          "clientId": "{{api.externalId}}"
        }
      }
    }
  }
}

PATCH /apiMethods

Request

{
	"apiMethodId": 121, //required
  "apiId": 28, //optional
  "typeId": 1, //optional
  "methodUrl": "/api/Order/status/{{api.externalId}}", //optional
  "methodName": "applicationStatusTakePhotos", //optional
  "requestJson": { //optional
    "clientId": "{{api.externalId}}",
    "applicationStatus": "TakePhotos"
  },
  "responseJson": { //optional
    "status": 1,
    "message": null,
    "response": {
      "succes": 1,
      "clientId": "{{api.externalId}}"
    }
  }
}

Response

{
  "status": 1,
  "message": "",
  "response": {
    "apiMethod": {
      "apiMethodId": 23,
      "apiId": 28,
      "typeId": 1,
      "methodUrl": "/api/Order/status/{{api.externalId}}",
      "methodName": "applicationStatusTakePhotos",
      "requestJson": {
        "clientId": "{{api.externalId}}",
        "applicationStatus": "TakePhotos"
      },
      "responseJson": {
        "status": 1,
        "message": null,
        "response": {
          "succes": 1,
          "clientId": "{{api.externalId}}"
        }
      }
    }
  }
}

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

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

Request

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

Response

{
  "status": 1,
  "message": "",
  "response": {
    "apiMethods": [
      {
        "apiMethodId": 121,
        "apiId": 28,
        "typeId": 1,
        "methodUrl": "/api/Order/status/{{api.externalId}}",
        "methodName": "applicationStatusTakePhotos",
        "requestJson": {
          "clientId": "{{api.externalId}}",
          "applicationStatus": "TakePhotos"
        },
        "responseJson": {
          "status": 1,
          "message": null,
          "response": {
            "succes": 1,
            "clientId": "{{api.externalId}}"
          }
        }
      },
      {
        "apiMethodId": 23,
        "apiId": 28,
        "typeId": 1,
        "methodUrl": "/api/Order/status/{{api.externalId}}",
        "methodName": "applicationStatusTakePhotos",
        "requestJson": {
          "clientId": "{{api.externalId}}",
          "applicationStatus": "TakePhotos"
        },
        "responseJson": {
          "status": 1,
          "message": null,
          "response": {
            "succes": 1,
            "clientId": "{{api.externalId}}"
          }
        }
      }
    ],
    "offset": 0,
    "total": 2
  }
}

GET /apiMethods/{method_id}

Request

Response

{
  "status": 1,
  "message": "",
  "response": {
    "apiMethod": {
      "apiMethodId": 23,
      "apiId": 28,
      "typeId": 1,
      "methodUrl": "/api/Order/status/{{api.externalId}}",
      "methodName": "applicationStatusTakePhotos",
      "requestJson": {
        "clientId": "{{api.externalId}}",
        "applicationStatus": "TakePhotos"
      },
      "responseJson": {
        "status": 1,
        "message": null,
        "response": {
          "succes": 1,
          "clientId": "{{api.externalId}}"
        }
      }
    }
  }
}

DELETE /apiMethods/{method_id}

Request

Response

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