segments-definition-service (2.0)

Download OpenAPI specification:Download

Microservice containing the business logic for managing segments definition documents.

Descriptions of these functions can be found in the section headers for each collection of relevant resources.

Authentication

OAuth2

Security Scheme Type OAuth2
implicit OAuth Flow
Authorization URL: https://localhost:8443/uaa/oauth/authorize
Scopes:
  • default -

    Default oauth2 scope.

password OAuth Flow
Token URL: https://localhost:8443/uaa/oauth/token
Scopes:
  • default -

    Default oauth2 scope.

authorizationCode OAuth Flow
Authorization URL: https://localhost:8443/uaa/oauth/authorize
Token URL: https://localhost:8443/uaa/oauth/token
Scopes:
  • default -

    Default oauth2 scope.

clientCredentials OAuth Flow
Token URL: https://localhost:8443/uaa/oauth/token
Scopes:
  • default -

    Default oauth2 scope.

segments-definition-controller

Endpoint for upgrading Segments document for a given schema version

Authorizations:
query Parameters
schemaVersion
integer <int32>
Request Body schema: application/vnd.ge.mes.full+json;version=2.0
object

Responses

Request samples

Content type
application/vnd.ge.mes.full+json;version=2.0
{ }

Response samples

Content type
application/vnd.ge.mes.full+json;version=2.0
{ }

Endpoint for getting all the supported schema versions

Authorizations:

Responses

Response samples

Content type
application/vnd.ge.mes.full+json;version=2.0
"[{\"schemaVersion\": \"6\"},{\"schemaVersion\": \"7\"},{\"schemaVersion\": \"8\"}{\"schemaVersion\": \"9\"}]"

Validate segments

Authorizations:
query Parameters
validateSchemaOnly
boolean
Default: false

True to validate SegmentsSchema. False to validate both Segments schema and content

Request Body schema: application/vnd.ge.mes.full+json;version=2.0
object

Responses

Request samples

Content type
application/vnd.ge.mes.full+json;version=2.0
{ }

Response samples

Content type
application/vnd.ge.mes.full+json;version=2.0
{
  • "path": "string",
  • "error": {
    },
  • "message": "string",
  • "timestamp": "string",
  • "status": "string"
}

Endpoint for getting blank Segments document for a given schema version

Authorizations:
path Parameters
schemaVersion
required
integer <int32>

Schema version

Responses

Response samples

Content type
application/vnd.ge.mes.full+json;version=2.0
{ }