Skip to content
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
2 changes: 1 addition & 1 deletion .stoplight/styleguide.json

Large diffs are not rendered by default.

54 changes: 30 additions & 24 deletions ovs/v3/OVS_v3.0.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,22 @@ paths:
- name: vesselIMONumber
in: query
description: |
The identifier of a vessel. The result will only return schedules including the vessel with the specified IMO number. It is not a requirement for dummy vessels to have an `IMO Number`. In this case filtering by `vesselName` should be used.
The identifier of a vessel via the `vesselIMONumber`. The result will only return schedules including the vessel with the specified `vesselIMONumber`. It is not a requirement for dummy vessels to have an `vesselIMONumber`. In this case filtering by `vesselName` should be used.
schema:
type: string
pattern: ^\d{7}$
maxLength: 7
example: '9321483'
- name: MMSINumber
in: query
description: |
The identifier of a vessel via the `MMSINumber`. The result will only return schedules including the vessel with the specified `MMSINumber`. It is not a requirement for dummy vessels to have an `MMSINumber`. In this case filtering by `vesselName` should be used.
schema:
type: string
pattern: ^\d{9}$
minLength: 9
maxLength: 9
example: '278111222'
- name: vesselName
in: query
description: |
Expand Down Expand Up @@ -169,10 +179,10 @@ paths:
- name: API-Version
in: header
description: |
An API-Version header **MAY** be added to the request (optional); if added it **MUST** only contain **MAJOR** version. API-Version header **MUST** be aligned with the URI version.
From v3.0.1 and onward - every API request and response must contain the API-Version header, set to the full version of the implemented DCSA standard.
schema:
type: string
example: '3'
example: '3.0.1'
responses:
'200':
description: OK
Expand Down Expand Up @@ -300,9 +310,23 @@ components:
maxLength: 7
description: |
The unique reference for a registered Vessel. The reference is the International Maritime Organisation (IMO) number, also sometimes known as the Lloyd's register code, which does not change during the lifetime of the vessel

Condition: If the vessel is not dummy, there needs to be an IMO. If the vessel is dummy, the IMO is optional.

**Condition:** If `isDummyVessel` is `false` - at least one of `vesselIMONumber` or `MMSINumber` **MUST** be specified in order to identify the `Vessel`. It is also acceptable to provide both properties. If `isDummyVessel` is `true` it is optional to provide this property.

**Condition:** Please note that if the requester is on a version `3.0.0` (indicated by the `APIVersion` being blank or containing the value `3`) and it is not a dummy vessel (`isDummyVessel: false`) then this property **MUST** be present.
example: '9321483'
MMSINumber:
type: string
pattern: ^\d{9}$
minLength: 9
maxLength: 9
description: |
Maritime Mobile Service Identities (MMSIs) are nine-digit numbers used by maritime digital selective calling (DSC), automatic identification systems (AIS) and certain other equipment to uniquely identify a ship or a coast radio station.

**Condition:** If `isDummyVessel` is `false` - at least one of `vesselIMONumber` or `MMSINumber` **MUST** be specified in order to identify the `Vessel`. It is also acceptable to provide both properties. If `isDummyVessel` is `true` it is optional to provide this property.

**Condition:** It is only possible to use this property in case the requester is on version `3.0.1` or later or `vesselIMONumber` is also provided. In case the requester is on version `3.0.0` (indicated by the `APIVersion` header being blank or containing the value `3`) - this property cannot be used unless `vesselIMONumber` is also present.
example: '278111222'
vesselName:
type: string
maxLength: 35
Expand All @@ -318,7 +342,7 @@ components:
isDummyVessel:
type: boolean
description: |
Is this a dummy vessel. In case no vessel has been asigned yet - this property can be set to `true` indicating that the vesselIMONumber does not exist.
Is this a dummy vessel? In case no vessel has been asigned yet - this property can be set to `true` indicating that the `vesselIMONumber`/`MMSINumber` does not exist.
transportCalls:
type: array
items:
Expand Down Expand Up @@ -762,24 +786,6 @@ components:
example: Spaces not allowed in facility code
required:
- errorCodeText
parameters:
Limit:
name: limit
in: query
description: Maximum number of items to return.
required: false
schema:
minimum: 0
type: number
default: 100
APIVersionMajor:
name: API-Version
in: header
description: An API-Version header **MAY** be added to the request (optional); if added it **MUST** only contain **MAJOR** version. API-Version header **MUST** be aligned with the URI version.
required: false
schema:
type: string
example: "3"
headers:
API-Version:
description: |
Expand Down