Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Targeted Environment

...

  • PBI #8848 - Regulated entity enhancement - CRSM would like to use TC226_REGULATED_ENTITY_ID_TYPE.REGULATED_ENTITY_ID_TYPE_CD for regulated entities Post and Put.

  • BUG #8881: CRSM setting time back one minute immediately after a status update throws an error.

  • BUG #8717: Fix for issue where coordinates were removed when re-generating coordinates with id = 0

  • BUG #7946: GET /organizations and GET /organizations/{id} not returning correct value in OrganizationType

  • BUG # 8720: PUT /api/v1/organizations - should check DB and include the right ids in response body

  • BUG #8743: GET /api/v1/permissions/{permissionId}/services/{serviceId}/users/{userId} - need to change responses for various permutations

  • BUG #8741: DELETE /api/v1/notification-template/{templateName} - unexpected change in status code and response when providing a random name

  • BUG #6863: POST /api/v1/service-settings can create RTMR settings using SVMMS API key/token

  • BUG #7326: SVMMS api key & app jwt can access service settings and service preferences of RTMR

  • Technical works

    • Security improvement to the service settings apis to ensure a service can only maintain its own service settings.

Service Regulated Entities (PBI #8848)

Updates January 28 – 2021

GET - /api/v1/services/{id}/regulated-entities

Due to a database update the service regulated entity id has been removed and will no longer be displayed in the response body.

Previously the id was displayed.

Code Block
languagejson
[
  {
    "Id": 1,
    "ServiceId": 1230,
    "RegulatedEntityTypeCode": "VESSEL",
    "RegulatedEntityIdTypeCode": "VESSEL_NM",
    "SortOrder": 1,
    "EnglishDisplayName": "Vessel Name",
    "FrenchDisplayName": "Nom du bâtiment"
  }
]

Now with the update the id is no longer displayed.

Code Block
languagejson
[
  {
    "ServiceId": 1230,
    "RegulatedEntityTypeCode": "VESSEL",
    "RegulatedEntityIdTypeCode": "VESSEL_NM",
    "SortOrder": 1,
    "EnglishDisplayName": "Vessel Name",
    "FrenchDisplayName": "Nom du bâtiment"
  }
]

GET - /api/v1/regulated-entities?serviceRequestId={id}

Due to a database update the service regulated entity id has been removed and will no longer be displayed in the response body.

Previously the id was displayed.

Code Block
languagejson
[
  {
    "Id": 1,
    "ServiceId": 1230,
    "RegulatedEntityTypeCode": "VESSEL",
    "RegulatedEntityIdTypeCode": "VESSEL_NM",
    "SortOrder": 1,
    "EnglishDisplayName": "Vessel Name",
    "FrenchDisplayName": "Nom du bâtiment"
  }
]

Now with the update the id is no longer displayed.

Code Block
languagejson
[
  {
    "ServiceId": 1230,
    "RegulatedEntityTypeCode": "VESSEL",
    "RegulatedEntityIdTypeCode": "VESSEL_NM",
    "SortOrder": 1,
    "EnglishDisplayName": "Vessel Name",
    "FrenchDisplayName": "Nom du bâtiment"
  }
]

POST - /api/v1/regulated-entities

Due to a database update the service regulated entity id has been removed it will no longer be used to create regulated entity values.

Previously the id which is a number was used.

Code Block
languagejson
[
  {
    "Id": 1,
    "Value": "string"
  },
  {
    "Id": 2,
    "Value": "string"
  },
  {
    "Id": 3,
    "Value": "string"
  },
  {
    "Id": 4,
    "Value": "string"
  }
]

Now the id used is the regulated entity type code which is now a string and no longer a number.

Code Block
languagejson
[
  {
    "Id": "VESSEL_NM",
    "Value": "test"
  },
  {
    "Id": "CDN_SHIP_IND",
    "Value": "test"
  },
  {
    "Id": "IMO",
    "Value": "test"
  },
  {
    "Id": "OFFICIAL_NO",
    "Value": "test"
  }
]

PUT - /api/v1/regulated-entities

Due to a database update the service regulated entity id has been removed it will no longer be used to create regulated entity values.

Previously the id which is a number was used.

Code Block
languagejson
[
  {
    "Id": 1,
    "Value": "string"
  },
  {
    "Id": 2,
    "Value": "string"
  },
  {
    "Id": 3,
    "Value": "string"
  },
  {
    "Id": 4,
    "Value": "string"
  }
]

Now the id used is the regulated entity type code which is now a string and no longer a number.

Code Block
languagejson
[
  {
    "Id": "VESSEL_NM",
    "Value": "test"
  },
  {
    "Id": "CDN_SHIP_IND",
    "Value": "test"
  },
  {
    "Id": "IMO",
    "Value": "test"
  },
  {
    "Id": "OFFICIAL_NO",
    "Value": "test"
  }
]

MTOA NuGet packages Release Notes

Version ---- (2021-01-28) (based on the dev branch) 

Breaking change 
N/A

MTOA Database – Release Note for Version (v1.13.0)

...