Register a Definition
PUT/registry-svc/definition
Registers a new definition, associating an definition address with a slug acquired from the bearer token.
Request
- application/json
Body
required
Register Service Definition Request
Array [
]
Array [
]
definition
object
apiSpecs
object[]
API Specs such as OpenAPI definitions etc.
metadata
object
Additional metadata about the API (e.g., author, license, etc.)
Protocol type (e.g., OpenAPI, Swagger, etc.)
URL to the OpenAPI file or other API definition
Version of the API specification (e.g., 3.0.0)
clients
object[]
Programming language clients such as on npm or GitHub.
Possible values: [JavaScript
, Python
, Java
, C#
, C++
, Ruby
, Go
, Swift
, PHP
, TypeScript
, Kotlin
, Scala
, Perl
, Rust
, Haskell
, Clojure
, Elixir
, Objective-C
, F#
]
The URL of the client.
HostPort is a clutch until automatic port assignment works. It will go a way as it doesn't make any sense in a Definition.
image
object
required
Name is the container image name/URL to use for the container
Port is the port number that the container will listen on internally
Responses
- 201
- 400
- 401
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
object
{}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}