Table 5.32. Upload the complete service definition
Method | URI | Content-Type | Description |
---|---|---|---|
POST | /admin/services | application/octet-stream | Uploads a tar.gz archive containing service definition to be added to catalog along with the referenced metadata objects. Metadata objects could be located in nested directories, the directory structure will be preserved on server-side |
POST | /admin/services | multipart/form-data | Uploads a tar.gz archive containing service definition to be added to catalog along with the referenced metadata objects. Attribute "file" that points to the uploading file should be in request.FILES section |
Table 5.33. Parameters
Parameter | Description | Required |
---|---|---|
full_service_name | Identifies the type service (corresponds to full_service_name in manifest) | true |
Table 5.34. Error Response Codes
Code | Description |
---|---|
401 | User is not authorized to access this tenant resources |
404 | The full_service_name is unknown |
400 | Uploading file is not tar.gz or archive is invalid (archive structure not correspond to defined in config) |
Payload
All files from archive are copied to corresponds location in Metadata Service
Returns
In case of successful result this call returns a json:
{"result": "success"}