enriched get: Person
This commit is contained in:
13
dfc.yaml
13
dfc.yaml
@@ -418,7 +418,7 @@ paths:
|
||||
"@id": http://test.host/api/dfc/Enterprises/10000
|
||||
"@type": dfc-b:Enterprise
|
||||
dfc-b:hasAddress: http://test.host/api/dfc/Addresses/40000
|
||||
dfc-b:hasPhoneNumber: http://test.host/api/dfc/PhoneNumbers/444000245
|
||||
dfc-b:hasPhoneNumber: http://test.host/api/dfc/PhoneNumbers/4401214000245
|
||||
dfc-b:email: support@example.org
|
||||
dfc-b:websitePage: https://www.test.host
|
||||
dfc-b:hasSocialMedia: http://test.host/api/dfc/Enterprises/10000/SocialMedias/facebook
|
||||
@@ -566,6 +566,15 @@ paths:
|
||||
"@context": https://www.datafoodconsortium.org
|
||||
"@id": http://test.host/api/dfc/Persons/10000
|
||||
"@type": dfc-b:Person
|
||||
dfc-b:familyName: Khan
|
||||
dfc-b:firstName: Ali
|
||||
dfc-b:hasAddress: http://test.host/api/dfc/Addresses/40000
|
||||
dfc-b:hasPhoneNumber: http://test.host/api/dfc/PhoneNumbers/4401214000245
|
||||
dfc-b:hasEmail: ali.khan@test.host
|
||||
dfc-b:hasSocialMedia:
|
||||
"@type": dfc-b:SocialMedia
|
||||
dfc-b:name: twitter
|
||||
dfc-b:URL: https://x.com/user
|
||||
'404':
|
||||
description: not found
|
||||
|
||||
@@ -591,7 +600,7 @@ paths:
|
||||
test_example:
|
||||
value:
|
||||
"@context": https://www.datafoodconsortium.org
|
||||
"@id": http://test.host/api/dfc/PhoneNumbers/444000245
|
||||
"@id": http://test.host/api/dfc/PhoneNumbers/4401214000245
|
||||
"@type": dfc-b:PhoneNumber
|
||||
dfc-b:countryCode: 44
|
||||
dfc-b:phoneNumber: 0121-400-0245
|
||||
|
||||
Reference in New Issue
Block a user