Versions Compared

Key

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

...

The success responses Ok and No Content still would have the sample response irrespective of the API, hence these could still be included in the global components section. But as the response body would be different for 'OK'different APIs while returning status code 200, this should be defined along with the API and should not be global.  We could define the response body schema under the schema' section in global properties.

Expand
titleAnchor Schema sample
schemas:
AnchorDetails:
type: object
title: Anchor details by anchor Name
properties:
name:
type: string
example: Anchor_1
dataspaceName:
type: string
example: Dataspace_1
schemaSetName:
type: string
example: Schema_set_1


Expand
titleArray of Anchor schema sample
ArrayOfAnchors:
type: object
title: Anchor for schema set
properties:
records:
type: array
items:
type: object
properties:
name:
type: string
example: 'my_anchor'
dataspace:
type: string
example: 'my_dataspace'
schemaSet:
type: string
example: 'my-schema-set'