Skip to content

Commit b72911a

Browse files
committed
Fix OVS Hub Notification API
1 parent 68978c8 commit b72911a

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

ovs_hub_ntf/v1/OVS_HUB_NTF_v1.0.0.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ paths:
134134
- Subscription
135135
summary: Receive a list of your active subscriptions
136136
operationId: get-all-subscriptions
137+
description: |
138+
Get a list of all subscriptions.
137139
parameters:
138140
- name: limit
139141
in: query
@@ -263,8 +265,8 @@ paths:
263265
secret: MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDM2NTc4NjIzODk3NDY5MDgyNzM0OTg3MTIzNzg2NA==
264266
weekRange: 1
265267
vesselIMONumbers:
266-
- 9321483
267-
- 9929429
268+
- '9321483'
269+
- '9929429'
268270
emailAllExample:
269271
summary: |
270272
Subscription using emails to be notified about everything
@@ -341,6 +343,8 @@ paths:
341343
- Subscription
342344
summary: Find a subscription by subscription reference
343345
operationId: get-subscription
346+
description: |
347+
Get the subscription matching `subscriptionReference`.
344348
parameters:
345349
- name: subscriptionReference
346350
in: path
@@ -403,6 +407,8 @@ paths:
403407
- Subscription
404408
summary: Stop a subscription by subscription reference
405409
operationId: delete-subscription
410+
description: |
411+
Deletes the subscription with `subscriptionReference`.
406412
parameters:
407413
- name: subscriptionReference
408414
in: path
@@ -461,6 +467,8 @@ paths:
461467
- Subscription
462468
summary: Update a subscription by subscription reference
463469
operationId: put-subscription
470+
description: |
471+
Updates the subscription with `subscriptionReference`.
464472
parameters:
465473
- name: subscriptionReference
466474
in: path
@@ -531,6 +539,8 @@ paths:
531539
- Secret
532540
summary: Resets the Secret on an existing subscription
533541
operationId: put-secret
542+
description: |
543+
Updates the secret of subscription with `subscriptionReference`.
534544
parameters:
535545
- name: subscriptionReference
536546
in: path
@@ -650,7 +660,7 @@ components:
650660
The `callbackUrl` **MUST** be an open endpoint for OVS Hub to call when sending a notification. The receiver **MUST** validate the authenticity of the notification by looking at the `Notification-Signature` header.
651661
652662
**Condition:** If `callbackUrl` is provided, the `secret` property must also be provided. It can be updated via the [update-secret](https://app.swaggerhub.com/apis/dcsaorg/DCSA_OVS_NTF/1.0.0#/Secret/put-secret) endpoint.
653-
example: https://myserver.com/send/callback/here?shipperRef=<shipper defined unique id>
663+
example: https://myserver.com/send/callback/here?shipperRef=myID123
654664
useEmail:
655665
type: boolean
656666
description: |
@@ -801,7 +811,6 @@ components:
801811
If this property is empty, you will be notified for all `facilitySMDGCodes` that have changes you are authorized to see.
802812
items:
803813
type: string
804-
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
805814
maxLength: 6
806815
description: |
807816
The code used for identifying the specific facility. This code does not include the UN Location Code.
@@ -836,7 +845,7 @@ components:
836845
The `callbackUrl` **MUST** be an open endpoint for OVS Hub to call when sending a notification. The receiver **MUST** validate the authenticity of the notification by looking at the `Notification-Signature` header.
837846
838847
**Condition:** If `callbackUrl` is provided then `secret` property is mandatory to provide also.
839-
example: https://myserver.com/send/callback/here?shipperRef=<shipper defined unique id>
848+
example: https://myserver.com/send/callback/here?shipperRef=myID123
840849
secret:
841850
type: string
842851
format: byte
@@ -997,7 +1006,6 @@ components:
9971006
If this property is empty, you will be notified for all `facilitySMDGCodes` that have changes you are authorized to see.
9981007
items:
9991008
type: string
1000-
pattern: ^[A-Z]{2}[A-Z2-9]{3}$
10011009
maxLength: 6
10021010
description: |
10031011
The code used for identifying the specific facility. This code does not include the UN Location Code.

0 commit comments

Comments
 (0)