concept field in category swagger

appears as: fields, field, fields
Designing APIs with Swagger and OpenAPI

This is an excerpt from Manning's book Designing APIs with Swagger and OpenAPI.

  • Operations can be added under the paths field. The direct children of these are URIs (ie: /reviews) and the children under the URIs are methods (ie: get). Finally the fields under the methods detail the operation (ie: description, parameters, responses, etc).
  • Now that we’ve increased the specificity of our schema, to not only require an object, but to require an object that has a field called rating. We’ve also specified that the field needs to have a number for a value. Not so bad!