Skip to content

[DOCS] Add examples to API endpoints #2482

Closed
@szabosteve

Description

@szabosteve

Description

Add examples to the API endpoints.

  • Use YAML format instead of JSON, since it supports comments. For example, conversion can be done via https://marketplace.visualstudio.com/items?itemName=tuxtina.json2yaml
  • Put the examples in "request" and "response" subfolders alongside the appropriate specifications. If you know the response code, use a "200_response" subfolder, for example.
  • To prevent duplicated work, leave your name beside a namespace/API you start working on.
  • The list contains only the API namespaces (for example, indices), you can expand the list granularly by adding the endpoints related to the namespace you work on in case it helps track the effort (for example, if you don't cover the whole namespace in one PR).
  • Add your PR URL next to the related namespace/API.
  • Adjust the list if you find any missing namespaces/endpoints.
  • Leave relevant notes either in the list or in a comment.

NOTE: Until there's an automated method for associating examples with endpoints, we're accomplishing it via overlays. Reach out to @lcawl if assistance is required.

API namespace inventory:

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions