Forum Discussion
frankkilcommins
Staff
Could you share your OpenAPI 3.0 definition? I'm not sure based on above what you are trying to achieve.
Thanks,
Frank
Prasanna_Ailuri
3 years agoNew Contributor
Hi frankkilcommins ,
We have an endpoint which returns objects as an array of below mentioned JSON:
{
"value": "a12345",
"$ref": "https://example.com/v3/Resources/a12345",
"display": "Resource-a12345"
}
Thanks,
Prasanna
- Prasanna_Ailuri3 years agoNew Contributor
paths:
/users:
get:
summary: Returns a list of users.
description: Optional extended description in CommonMark or HTML.
responses:
'200': # status code
description: A JSON array of user names
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Response'
components:
schemas:
Response:
type: object
properties:
id:
type: string
meta:
type: array
items:
$ref: '#/components/schemas/Metadata'
Metadata:
required:
- value
type: object
properties:
value:
type: string
display:
type: string
$ref:
type: string
Related Content
- 4 years ago
Recent Discussions
- 7 days ago
- 7 days ago
- 24 days ago