API Configuration
Description
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
url |
No |
String |
Request path. The default value is /. For a custom image model, set this parameter to the actual request path exposed in the image. For a non-custom image model, the value of url can only be /. |
method |
No |
String |
Request method. The default value is POST. |
request |
No |
Object |
Request body. It contains two parameters:
|
response |
No |
Object |
Response body. It contains two parameters:
|
Code example of API parameters
[{ "url": "/", "method": "post", "request": { "Content-type": "multipart/form-data", "data": { "type": "object", "properties": { "images": { "type": "file" } } } }, "response": { "Content-type": "applicaton/json", "data": { "type": "object", "properties": { "mnist_result": { "type": "array", "item": [ { "type": "string" } ] } } } } }]
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot