MS2 Public API (1.0.0)

Download OpenAPI specification:Download

MS2 Public API

API for external partners to maintain metadata about the models, such as when it was created, the model type, and other key pieces of information for the archive.

Authentication

API to get auth token.

Authentication

Get authorization access token.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
username
string
password
string

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "username": "string",
  • "roles": [
    ],
  • "expirationTime": 0,
  • "accessToken": "string"
}

External Partners

APIs to manage models.

Get Model by ID

Get Models by TDIS Identifier.

Authorizations:
ApiKeyAuth
path Parameters
model_tdis_identifier
required
string

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

Get Download File Path

Get Download File Path by TWDB Identifier.

Authorizations:
ApiKeyAuth
query Parameters
twdb_identifier
required
string

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

Get Models By User

Get all the models by user.

Authorizations:
ApiKeyAuth
path Parameters
username
required
string

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

Get Models By Project Identifier

Get all the models by project identifier.

Authorizations:
ApiKeyAuth
query Parameters
project_identifier
required
string

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

Get Models By Search Field

Get models by project identifier or external identifier.

Authorizations:
ApiKeyAuth
query Parameters
search_field
required
string

Search field (project_identifier or external_identifier).

value
required
string

Search value.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

Search Models

Search models by search terms

path Parameters
search_terms
required
string

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

List files of Model

Get the list of uploaded files by TDIS identifier.

Authorizations:
ApiKeyAuth
path Parameters
tdis_identifier
required
string

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

Get Model Archive Files

Get archive files by TDIS Identifier

Authorizations:
ApiKeyAuth
path Parameters
model_tdis_identifier
required
string

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ]
}

This endpoint is to capture the user downloading t

This endpoint is to capture the user downloading the file. This is for TDIS Audit purposes.

Authorizations:
ApiKeyAuth
Request Body schema: application/json
emailId
any

Responses

Request samples

Content type
application/json
{
  • "emailId": "download_user@example.org"
}