1.3.1.5.1. REST API reference
semantic_repo
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
More information: https://openapi-generator.tech
Contact Info: team@openapitools.org
Version: 0.1
BasePath:
All rights reserved
http://apache.org/licenses/LICENSE-2.0.html
Access
Methods
[ Jump to Models ]Table of Contents
Default
delete /{namespace}/{model}/{version}/contentdelete /{namespace}/{model}delete /{namespace}/{model}/{version}delete /{namespace}get /get /{namespace}/{model}/{version}/contentget /{namespace}/{model}get /{namespace}/{model}/{version}get /{namespace}get /vpatch /{namespace}/{model}patch /{namespace}/{model}/{version}post /{namespace}/{model}/{version}/contentpost /{namespace}/{model}post /{namespace}/{model}/{version}post /{namespace}
Default
Up
delete /{namespace}/{model}/{version}/contentDelete a model's content (deleteRoute)
Delete content in a given format for a specific version of a model in the repository.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
version (required)
Path Parameter — Version tag default: null
Request body
OptionString OptionString (optional)
Body Parameter —
Query parameters
format (required)
Query Parameter — Format tag of the content. default: null
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse400
invalid format tag ErrorResponse404
content not found ErrorResponse
Up
delete /{namespace}/{model}Delete a model (deleteRoute1)
Delete a model in the repository. This is only possible if the model is empty, i.e., all model versions were already deleted.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
Request body
body object (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse404
model not found ErrorResponse
Up
delete /{namespace}/{model}/{version}Delete a model version (deleteRoute2)
Delete a specific version of a model in the repository. This is only possible if the model version is empty, i.e., all associated content and documentation pages were already deleted.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
version (required)
Path Parameter — Version tag default: null
Request body
ModelVersionContext ModelVersionContext (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse404
model not found ErrorResponse400
model version is not empty ErrorResponse
Up
delete /{namespace}Delete a namespace (deleteRoute3)
Delete a namespace in the repository. This is only possible if the namespace is empty.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
Request body
body string (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse404
Namespace not found ErrorResponse400
Namespace is not empty ErrorResponse
Up
get /Get a list of namespaces (getAllRoute)
Return a list of namespaces in the repository
Return type
Example data
Content-Type: application/json
{
"namespaces" : {
"totalCount" : 0,
"items" : [ {
"models" : {
"totalCount" : 0,
"items" : [ {
"versions" : {
"totalCount" : 6,
"items" : [ {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}, {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
} ]
},
"latestVersion" : "latestVersion",
"name" : "name",
"namespace" : "namespace"
}, {
"versions" : {
"totalCount" : 6,
"items" : [ {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}, {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
} ]
},
"latestVersion" : "latestVersion",
"name" : "name",
"namespace" : "namespace"
} ]
},
"name" : "name"
}, {
"models" : {
"totalCount" : 0,
"items" : [ {
"versions" : {
"totalCount" : 6,
"items" : [ {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}, {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
} ]
},
"latestVersion" : "latestVersion",
"name" : "name",
"namespace" : "namespace"
}, {
"versions" : {
"totalCount" : 6,
"items" : [ {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}, {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
} ]
},
"latestVersion" : "latestVersion",
"name" : "name",
"namespace" : "namespace"
} ]
},
"name" : "name"
} ]
}
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
List of namespaces RootInfoClientModel
Up
get /{namespace}/{model}/{version}/contentGet the model's content (getRoute)
Return the content of a specific version of a model
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
version (required)
Path Parameter — Version tag default: null
Request body
OptionString OptionString (optional)
Body Parameter —
Query parameters
format (optional)
Query Parameter — Preferred format for the content. If not specified, content in the default format will be returned, if possible. default: null
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.*/*application/json
Responses
200
Content found404
Content not found ErrorResponse
Up
get /{namespace}/{model}Get a model by name (getRoute1)
Return a model based on name
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
Request body
body object (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"versions" : {
"totalCount" : 6,
"items" : [ {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}, {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
} ]
},
"latestVersion" : "latestVersion",
"name" : "name",
"namespace" : "namespace"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
Model found ModelClientModel404
Model not found ErrorResponse
Up
get /{namespace}/{model}/{version}Get a model version (getRoute2)
Return a specific version of a model
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
version (required)
Path Parameter — Version tag default: null
Request body
ModelVersionContext ModelVersionContext (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
Model version found ModelVersionClientModel404
Model version not found ErrorResponse
Up
get /{namespace}Get a namespace by name (getRoute3)
Return a namespace based on name
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
Request body
body string (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"models" : {
"totalCount" : 0,
"items" : [ {
"versions" : {
"totalCount" : 6,
"items" : [ {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}, {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
} ]
},
"latestVersion" : "latestVersion",
"name" : "name",
"namespace" : "namespace"
}, {
"versions" : {
"totalCount" : 6,
"items" : [ {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
}, {
"formats" : {
"key" : {
"size" : 0,
"contentType" : "contentType",
"md5" : "md5"
}
},
"namespace" : "namespace",
"model" : "model",
"version" : "version",
"defaultFormat" : "defaultFormat"
} ]
},
"latestVersion" : "latestVersion",
"name" : "name",
"namespace" : "namespace"
} ]
},
"name" : "name"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
Namespace found NamespaceClientModel404
Namespace not found ErrorResponse
Up
get /vReturns version information (getRoute4)
Return type
Example data
Content-Type: application/json
{
"name" : "name",
"version" : "version"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
Version information VersionResponse
Up
patch /{namespace}/{model}Update an existing model (patchRoute)
Change one or more fields of a model in the repository.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
Request body
ModelUpdateModel ModelUpdateModel (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse400
invalid request body ErrorResponse404
model not found ErrorResponse
Up
patch /{namespace}/{model}/{version}Update an existing model version (patchRoute1)
Change one or more fields of a specific version of a model in the repository.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
version (required)
Path Parameter — Version tag default: null
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
Request body
ModelVersionUpdateModel ModelVersionUpdateModel (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse400
invalid request body ErrorResponse404
model version not found ErrorResponse
Up
post /{namespace}/{model}/{version}/contentUpload model's content (postRoute)
Upload content for a specific version of a model in the repository.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
version (required)
Path Parameter — Version tag default: null
Consumes
This API call consumes the following media types via the Content-Type request header:multipart/form-data
Query parameters
format (required)
Query Parameter — Format tag of the content. This is recommended (but not required) to be the file's Media Type. If the format does not match the file's Media Type, a warning will be issued. default: null
overwrite (optional)
Query Parameter — Set this parameter to '1' when overwriting content that was uploaded earlier in the same format. Without this parameter the overwriting upload will be rejected with HTTP 400. default: null
Form parameters
content (required)
Form Parameter — default: null
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse400
invalid format tag ErrorResponse404
Model version not found ErrorResponse
Up
post /{namespace}/{model}Create a new model (postRoute1)
Create a new model in the repository.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
Request body
ModelUpdateModel ModelUpdateModel (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse409
duplicate key error ErrorResponse400
invalid request body ErrorResponse404
Namespace not found ErrorResponse
Up
post /{namespace}/{model}/{version}Create a new model version (postRoute2)
Create a new version of a model in the repository.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
model (required)
Path Parameter — Name of the model default: null
version (required)
Path Parameter — Version tag default: null
Consumes
This API call consumes the following media types via the Content-Type request header:application/json
Request body
ModelVersionUpdateModel ModelVersionUpdateModel (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse409
duplicate key error ErrorResponse400
invalid request body ErrorResponse404
Namespace or model not found ErrorResponse
Up
post /{namespace}Create a new namespace (postRoute3)
Create a new namespace in the repository.
Path parameters
namespace (required)
Path Parameter — Name of the namespace default: null
Request body
body string (optional)
Body Parameter —
Return type
Example data
Content-Type: application/json
{
"warnings" : [ "warnings", "warnings" ],
"message" : "message"
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.application/json
Responses
200
success SuccessResponse409
duplicate key error ErrorResponse400
invalid namespace name ErrorResponseModels
[ Jump to Methods ]Table of Contents
ErrorResponse-ModelClientModel-ModelUpdateModel-ModelVersionClientModel-ModelVersionContext-ModelVersionUpdateModel-NamespaceClientModel-OptionString-RootInfoClientModel-SetClientModelModelClientModel-SetClientModelModelVersionClientModel-SetClientModelNamespaceClientModel-StoredFileClientModel-SuccessResponse-VersionResponse-
ErrorResponse - Up
error
ModelClientModel - Up
name
namespace
versions (optional)
latestVersion (optional)
ModelVersionClientModel - Up
version
model
namespace
formats (optional)
defaultFormat (optional)
RootInfoClientModel - Up
namespaces (optional)