Skip to content

♻️Storage API specs are now autogenerated 🚨 #4413

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions api/specs/common/schemas/error.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
components:
schemas:
ErrorEnveloped:
type: object
required:
- error
properties:
data:
nullable: true
default: null
error:
$ref: '#/components/schemas/ErrorType'
ErrorType:
type: object
required:
- status
- message
properties:
message:
description: Error message
type: string
example: Unexpected error
errors:
type: array
items:
properties:
code:
type: string
description: Server Exception
example: ServiceUUIDNotFoundError
status:
description: Error code
type: integer
example: 404
components:
schemas:
ErrorEnveloped:
type: object
required:
- error
properties:
data:
nullable: true
default: null
error:
$ref: '#/components/schemas/ErrorType'

ErrorType:
type: object
required:
- status
- message
properties:
message:
description: Error message
type: string
example: Unexpected error
errors:
type: array
items:
properties:
code:
type: string
description: Server Exception
example: ServiceUUIDNotFoundError
status:
description: Error code
type: integer
example: 404
56 changes: 28 additions & 28 deletions api/specs/common/schemas/health_check.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
components:
schemas:
HealthCheckEnveloped:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/HealthCheckType'
error:
nullable: true
default: null
HealthCheckType:
type: object
properties:
name:
type: string
example: director service
status:
type: string
example: SERVICE_RUNNING
api_version:
type: string
example: 1.0.0-dev
version:
type: string
example: 1dfcfdc
components:
schemas:
HealthCheckEnveloped:
type: object
required:
- data
properties:
data:
$ref: '#/components/schemas/HealthCheckType'
error:
nullable: true
default: null

HealthCheckType:
type: object
properties:
name:
type: string
example: director service
status:
type: string
example: SERVICE_RUNNING
api_version:
type: string
example: 1.0.0-dev
version:
type: string
example: 1dfcfdc
224 changes: 112 additions & 112 deletions api/specs/common/schemas/running_service.yaml
Original file line number Diff line number Diff line change
@@ -1,112 +1,112 @@
components:
schemas:
RunningServicesEnveloped:
type: object
required:
- data
properties:
data:
$ref: "#/components/schemas/RunningServicesArray"
error:
nullable: true
default: null
RunningServicesArray:
type: array
items:
$ref: "#/components/schemas/RunningServiceType"
RunningServiceEnveloped:
type: object
required:
- data
properties:
data:
$ref: "#/components/schemas/RunningServiceType"
error:
nullable: true
default: null
RunningServiceType:
type: object
required:
- published_port
- service_uuid
- service_key
- service_version
- service_host
- service_port
- service_state
- user_id
properties:
published_port:
description: The ports where the service provides its interface
type: integer
format: int32
minimum: 1
example: 30000
entry_point:
description: The entry point where the service provides its interface if specified
type: string
example: /the/entry/point/is/here
service_uuid:
description: The UUID attached to this service
type: string
# format: UUID
example: 123e4567-e89b-12d3-a456-426655440000
service_key:
type: string
description: distinctive name for the node based on the docker registry path
pattern: '^(simcore)/(services)/(comp|dynamic)(/[\w/-]+)+$'
example:
- simcore/services/comp/itis/sleeper
- simcore/services/dynamic/3dviewer
service_version:
type: string
description: semantic version number
pattern: >-
^(0|[1-9]\d*)(\.(0|[1-9]\d*)){2}(-(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*)(\.(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*))*)?(\+[-\da-zA-Z]+(\.[-\da-zA-Z-]+)*)?$
example:
- 1.0.0
- 0.0.1
service_host:
description: service host name within the network
type: string
example: jupyter_E1O2E-LAH
service_port:
description: port to access the service within the network
type: integer
minimum: 1
example: 8081
service_basepath:
description: different base path where current service is mounted otherwise defaults to root
type: string
example: "/x/E1O2E-LAH"
default: ""
service_state:
description: >
the service state
* 'pending' - The service is waiting for resources to start
* 'pulling' - The service is being pulled from the registry
* 'starting' - The service is starting
* 'running' - The service is running
* 'complete' - The service completed
* 'failed' - The service failed to start
type: string
enum:
- pending
- pulling
- starting
- running
- complete
- failed
service_message:
description: >-
the service message
type: string
example: no suitable node (insufficient resources on 1 node)
user_id:
description: >-
the user that started the service
type: string
example: "123"
components:
schemas:
RunningServicesEnveloped:
type: object
required:
- data
properties:
data:
$ref: "#/components/schemas/RunningServicesArray"
error:
nullable: true
default: null

RunningServicesArray:
type: array
items:
$ref: "#/components/schemas/RunningServiceType"

RunningServiceEnveloped:
type: object
required:
- data
properties:
data:
$ref: "#/components/schemas/RunningServiceType"
error:
nullable: true
default: null

RunningServiceType:
type: object
required:
- published_port
- service_uuid
- service_key
- service_version
- service_host
- service_port
- service_state
- user_id
properties:
published_port:
description: The ports where the service provides its interface
type: integer
format: int32
minimum: 1
example: 30000
entry_point:
description: The entry point where the service provides its interface if specified
type: string
example: /the/entry/point/is/here
service_uuid:
description: The UUID attached to this service
type: string
# format: UUID
example: 123e4567-e89b-12d3-a456-426655440000
service_key:
type: string
description: distinctive name for the node based on the docker registry path
pattern: '^(simcore)/(services)/(comp|dynamic)(/[\w/-]+)+$'
example:
- simcore/services/comp/itis/sleeper
- simcore/services/dynamic/3dviewer
service_version:
type: string
description: semantic version number
pattern: >-
^(0|[1-9]\d*)(\.(0|[1-9]\d*)){2}(-(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*)(\.(0|[1-9]\d*|\d*[-a-zA-Z][-\da-zA-Z]*))*)?(\+[-\da-zA-Z]+(\.[-\da-zA-Z-]+)*)?$
example:
- 1.0.0
- 0.0.1
service_host:
description: service host name within the network
type: string
example: jupyter_E1O2E-LAH
service_port:
description: port to access the service within the network
type: integer
minimum: 1
example: 8081
service_basepath:
description: different base path where current service is mounted otherwise defaults to root
type: string
example: "/x/E1O2E-LAH"
default: ""
service_state:
description: >
the service state
* 'pending' - The service is waiting for resources to start
* 'pulling' - The service is being pulled from the registry
* 'starting' - The service is starting
* 'running' - The service is running
* 'complete' - The service completed
* 'failed' - The service failed to start
type: string
enum:
- pending
- pulling
- starting
- running
- complete
- failed
service_message:
description: >-
the service message
type: string
example: no suitable node (insufficient resources on 1 node)
user_id:
description: >-
the user that started the service
type: string
example: "123"
Loading