openapi: 3.0.0 info: title: API GeographicLocation description: >- ## TMF API Reference : TMF675 - Geographic Location ### Release : 19.5 A GeographicLocation is a pure-virtual super-class to the GeoJSON-aligned sub-types of Point (addresses and locations), MultiPoint, LineString (streets, highways and boundaries), MultiLineString and Polygon (countries, provinces, tracts of land). Use the @type attribute to specify which of these is being specified by the geometry attribute. version: 4.0.0 tags: - name: geographicLocation - name: notification listeners (client side) - name: events subscription paths: /geographicLocation: get: operationId: listGeographicLocation summary: List or find GeographicLocation objects description: This operation list or find GeographicLocation entities tags: - geographicLocation parameters: - name: fields description: Comma-separated properties to be provided in response required: false in: query schema: type: string - name: offset description: Requested index for start of resources to be provided in response required: false in: query schema: type: integer - name: limit description: Requested number of resources to be provided in response required: false in: query schema: type: integer responses: "200": description: Success headers: X-Result-Count: description: Actual number of items returned in the response body schema: type: integer X-Total-Count: description: Total number of items matching criteria schema: type: integer content: application/json;charset=utf-8: schema: type: array items: $ref: "#/components/schemas/GeographicLocation" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" post: operationId: createGeographicLocation summary: Creates a GeographicLocation description: This operation creates a GeographicLocation entity. tags: - geographicLocation requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocation_Create" description: The GeographicLocation to be created required: true responses: "201": description: Created content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocation" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "/geographicLocation/{id}": get: operationId: retrieveGeographicLocation summary: Retrieves a GeographicLocation by ID description: This operation retrieves a GeographicLocation entity. Attribute selection is enabled for all first level attributes. tags: - geographicLocation parameters: - name: id description: Identifier of the GeographicLocation required: true in: path schema: type: string - name: fields description: Comma-separated properties to provide in response required: false in: query schema: type: string responses: "200": description: Success content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocation" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" patch: operationId: patchGeographicLocation summary: Updates partially a GeographicLocation description: This operation updates partially a GeographicLocation entity. tags: - geographicLocation parameters: - name: id description: Identifier of the GeographicLocation required: true in: path schema: type: string requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocation_Update" description: The GeographicLocation to be updated required: true responses: "200": description: Updated content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocation" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" delete: operationId: deleteGeographicLocation summary: Deletes a GeographicLocation description: This operation deletes a GeographicLocation entity. tags: - geographicLocation parameters: - name: id description: Identifier of the GeographicLocation required: true in: path schema: type: string responses: "204": description: Deleted "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" /hub: post: operationId: registerListener summary: Register a listener description: Sets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. tags: - events subscription requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/EventSubscriptionInput" description: Data containing the callback endpoint to deliver the information required: true responses: "201": description: Subscribed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/EventSubscription" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "/hub/{id}": delete: operationId: unregisterListener summary: Unregister a listener description: Resets the communication endpoint address the service instance must use to deliver information about its health state, execution state, failures and metrics. tags: - events subscription parameters: - name: id required: true in: path description: The id of the registered listener schema: type: string responses: "204": description: Deleted "400": description: Bad request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" /listener/geographicLocationCreateEvent: post: operationId: listenToGeographicLocationCreateEvent summary: Client listener for entity GeographicLocationCreateEvent description: Example of a client listener for receiving the notification GeographicLocationCreateEvent tags: - notification listeners (client side) requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocationCreateEvent" description: The event data required: true responses: "201": description: Notified content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/EventSubscription" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" /listener/geographicLocationAttributeValueChangeEvent: post: operationId: listenToGeographicLocationAttributeValueChangeEvent summary: Client listener for entity GeographicLocationAttributeValueChangeEvent description: Example of a client listener for receiving the notification GeographicLocationAttributeValueChangeEvent tags: - notification listeners (client side) requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocationAttributeValueChangeEvent" description: The event data required: true responses: "201": description: Notified content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/EventSubscription" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" /listener/geographicLocationDeleteEvent: post: operationId: listenToGeographicLocationDeleteEvent summary: Client listener for entity GeographicLocationDeleteEvent description: Example of a client listener for receiving the notification GeographicLocationDeleteEvent tags: - notification listeners (client side) requestBody: content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/GeographicLocationDeleteEvent" description: The event data required: true responses: "201": description: Notified content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/EventSubscription" "400": description: Bad Request content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "401": description: Unauthorized content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "403": description: Forbidden content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "404": description: Not Found content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "405": description: Method Not allowed content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "409": description: Conflict content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" "500": description: Internal Server Error content: application/json;charset=utf-8: schema: $ref: "#/components/schemas/Error" servers: - url: https://serverRoot/tmf-api/geographicLocation/v4 components: schemas: GeographicLocation: type: object description: A GeographicLocation is a pure-virtual super-class to the GeoJSON-aligned geometries of Point (addresses and locations), MultiPoint, LineString (streets, highways and boundaries), MultiLineString and Polygon (countries, provinces, tracts of land). Use the @type attribute to specify which of these is being specified by the geometry attribute. properties: id: type: string description: Unique identifier of the geographic location href: type: string format: uri description: An URI used to access to the geographic location resource "@type": type: string enum: - GeoJsonPoint - GeoJsonMultiPoint - GeoJsonLineString - GeoJsonMultiLineString - GeoJsonPolygon description: The name of the GeoJSON structure used in the geometry attribute bbox: type: array description: A bounding box array that contains the geometry. The axes order follows the axes order of the geometry items: type: number allOf: - $ref: "#/components/schemas/Place" required: - "@type" GeographicLocation_Create: type: object description: >- A GeographicLocation is a pure-virtual super-class to the GeoJSON-aligned geometries of Point (addresses and locations), MultiPoint, LineString (streets, highways and boundaries), MultiLineString and Polygon (countries, provinces, tracts of land). Use the @type attribute to specify which of these is being specified by the geometry attribute. Skipped properties: id,href required: - "@type" properties: name: type: string description: A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home] "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: The name of the GeoJSON structure used in the geometry attribute GeographicLocation_Update: type: object description: >- A GeographicLocation is a pure-virtual super-class to the GeoJSON-aligned geometries of Point (addresses and locations), MultiPoint, LineString (streets, highways and boundaries), MultiLineString and Polygon (countries, provinces, tracts of land). Use the @type attribute to specify which of these is being specified by the geometry attribute. Skipped properties: id,href required: - "@type" properties: name: type: string description: A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home] "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: The name of the GeoJSON structure used in the geometry attribute Place: type: object description: Place reference. Place defines the places where the products are sold or delivered. properties: id: type: string description: Unique identifier of the place href: type: string format: uri description: Unique reference of the place name: type: string description: A user-friendly name for the place, such as [Paris Store], [London Store], [Main Home] "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name EventSubscription: type: object description: Sets the communication endpoint address the service instance must use to deliver notification information required: - id - callback properties: id: type: string description: Id of the listener callback: type: string description: The callback being registered. query: type: string description: additional data to be passed EventSubscriptionInput: type: object description: Sets the communication endpoint address the service instance must use to deliver notification information required: - callback properties: callback: type: string description: The callback being registered. query: type: string description: additional data to be passed GeographicLocationCreateEvent: type: object description: The notification data structure properties: id: type: string description: Identifier of the Process flow href: type: string format: uri description: Reference of the ProcessFlow eventId: type: string description: The identifier of the notification. eventTime: type: string format: date-time description: Time of the event occurrence. eventType: type: string description: The type of the notification. correlationId: type: string description: The correlation id for this event. domain: type: string description: The domain of the event. title: type: string description: The title of the event. description: type: string description: An explnatory of the event. priority: type: string description: A priority. timeOcurred: type: string format: date-time description: The time the event occured. event: $ref: "#/components/schemas/GeographicLocationCreateEventPayload" GeographicLocationCreateEventPayload: type: object description: The event data structure properties: geographicLocation: $ref: "#/components/schemas/GeographicLocation" GeographicLocationAttributeValueChangeEvent: type: object description: The notification data structure properties: eventId: type: string description: The identifier of the notification. eventTime: type: string format: date-time description: Time of the event occurrence. eventType: type: string description: The type of the notification. correlationId: type: string description: The correlation id for this event. domain: type: string description: The domain of the event. title: type: string description: The title of the event. description: type: string description: An explnatory of the event. priority: type: string description: A priority. timeOcurred: type: string format: date-time description: The time the event occured. fieldPath: type: string description: The path identifying the object field concerned by this notification. event: $ref: "#/components/schemas/GeographicLocationAttributeValueChangeEventPayload" GeographicLocationAttributeValueChangeEventPayload: type: object description: The event data structure properties: geographicLocation: $ref: "#/components/schemas/GeographicLocation" GeographicLocationDeleteEvent: type: object description: The notification data structure properties: id: type: string description: Identifier of the Process flow href: type: string format: uri description: Reference of the ProcessFlow eventId: type: string description: The identifier of the notification. eventTime: type: string format: date-time description: Time of the event occurrence. eventType: type: string description: The type of the notification. correlationId: type: string description: The correlation id for this event. domain: type: string description: The domain of the event. title: type: string description: The title of the event. description: type: string description: An explnatory of the event. priority: type: string description: A priority. timeOcurred: type: string format: date-time description: The time the event occured. event: $ref: "#/components/schemas/GeographicLocationDeleteEventPayload" GeographicLocationDeleteEventPayload: type: object description: The event data structure properties: geographicLocation: $ref: "#/components/schemas/GeographicLocation" GeoJsonLineString: type: object description: "Container for GeoJson LineString: A collection of Points forming a connected line" allOf: - $ref: "#/components/schemas/GeographicLocation" - type: object properties: geoJson: $ref: "#/components/schemas/LineString" GeoJsonMultiLineString: type: object description: "A container for GeoJSON MultiLineString: A collection of distinct LineStrings" allOf: - $ref: "#/components/schemas/GeographicLocation" - type: object properties: geoJson: $ref: "#/components/schemas/MultiLineString" GeoJsonMultiPoint: type: object description: "Container for GeoJSON MultiPoint: A collection of Points" allOf: - $ref: "#/components/schemas/GeographicLocation" - type: object properties: geoJson: $ref: "#/components/schemas/MultiPoint" GeoJsonPoint: type: object description: "Container for a GeoJSON Point: A single position" allOf: - $ref: "#/components/schemas/GeographicLocation" - type: object properties: geoJson: $ref: "#/components/schemas/Point" GeoJsonPolygon: type: object description: "Container for GeoJSON Polygon: An array of linear rings" allOf: - $ref: "#/components/schemas/GeographicLocation" - type: object properties: geoJson: $ref: "#/components/schemas/Polygon" LineString: type: object description: "GeoJSON: A collection of Points forming a connected line" required: - coordinates properties: coordinates: $ref: "#/components/schemas/lineString" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name MultiLineString: type: object description: A collection of distinct LineStrings required: - coordinates - type properties: type: type: string coordinates: type: array items: $ref: "#/components/schemas/lineString" minItems: 1 "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name MultiPoint: type: object description: A collection of Points required: - coordinates - type properties: type: type: string coordinates: $ref: "#/components/schemas/positionArray" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name Point: type: object description: "GeoJSON: A single position" required: - coordinates - type properties: type: type: string coordinates: $ref: "#/components/schemas/position" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name Polygon: type: object description: An array of linear rings required: - coordinates - type properties: type: type: string coordinates: $ref: "#/components/schemas/polygon" "@baseType": type: string description: When sub-classing, this defines the super-class "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name position: description: "GeoJSON: A single position" type: array minItems: 2 items: type: number maxItems: 2 positionArray: description: "GeoJSON: An array of positions" type: array items: $ref: "#/components/schemas/position" lineString: description: "GeoJSON: An array of two or more positions" allOf: - $ref: "#/components/schemas/positionArray" - minItems: 2 linearRing: description: "GeoJSON: An array of four positions where the first equals the last" allOf: - $ref: "#/components/schemas/positionArray" - minItems: 4 polygon: description: "GeoJSON: An array of linear rings" type: array items: $ref: "#/components/schemas/linearRing" Error: description: Used when an API throws an Error, typically with a HTTP error response-code (3xx, 4xx, 5xx) type: object required: - code - reason properties: code: type: string description: Application relevant detail, defined in the API or a common list. reason: type: string description: Explanation of the reason for the error which can be shown to a client user. message: type: string description: More details and corrective actions related to the error which can be shown to a client user. status: type: string description: HTTP Error code extension referenceError: type: string format: uri description: URI of documentation describing the error. "@baseType": type: string description: When sub-classing, this defines the super-class. "@schemaLocation": type: string format: uri description: A URI to a JSON-Schema file that defines additional attributes and relationships "@type": type: string description: When sub-classing, this defines the sub-class entity name.