Hi,
I have a few problems with extending Open API model.
Our data model is based on Information Framework (SID) data model with some extenstions, so that I have to add additional fields to Rest API.
If I good understand TMF630_REST_API_Design_Guidelines_3.0_Part_2 _R17.5.1.pdf I need to add additional type which extends e.g. TMF Open API Customer.
MyCustomer:
title: MyCustomer
type: object
allOf:
- $ref: "#/definitions/Customer"
- properties:
myProperties:
type: string
And after calling method GET /tmf-api/customerManagement/v3/customer/{id} I should return three additional fields like:
"@type": "MyCustomer",
"@baseType": "Customer",
"@schemaLocation":"//server:port/resourceInventoryManagement/schema/MyCustomer.yml",
Please correct me if I'm wrong.
But how to create entities? Could you tell me if, it is a proper way to add a new endpoint for "MyCustomer" creation?
e.g. POST /tmf-api/customerManagement/v3/myCustomer?
Thank you in advance.
------------------------------
Adam Augustyn
Comarch S.A.
------------------------------