Skip to content
Last updated

Projects render API description files in YAML or JSON format into human-readable API documentation. API documentation typically consists of:

  • a metadata page that displays the information on API version, description, security, and servers
  • pages that describe individual operations API documentation can also have additional content independent of the description file, like quick start guides, security guides, or changelogs.

Both the metadata page, and the operations page have multiple interface elements that help you perform your tasks.

Download API description file

The project's API description files are available in both YAML and JSON formats.

To download an API description file:

  1. Navigate to an API's metadata page.
  2. In the Download API description section next to your preferred format, click the Download icon.

The file is downloaded to your machine.

Copy server URL

The API's metadata page lists servers available to run the APIs operations.

To copy a server's URL:

  • On an API's metadata page, in the Servers section, next to your preferred server, click the Copy icon.

You can now paste the server URL into another application.

Change code sample server URL

Each operation has a code sample you can use to test the API, or copy and paste the request into another application.

To change the server URL:

  • On an operation's page, in the code sample's top-left corner, select a server from the drop-down list.

The selected server is now displayed in the code sample.

Change code sample language

API operation pages generate code samples for operations in one of several programming languages. You can select a language for all APIs in your project, or change it for a single operation.

Change code sample language globally

To change the language of code samples globally:

  • On an API's metadata page, in the Languages box, select a language for the code samples.

The code samples are now displayed in your chosen language for all APIs.

Change code sample language for a single operation

To change the language of a single operation:

  • On an operation's page, in the code sample's top-right corner, select a language from the drop-down list.

The code sample is now displayed in your chosen language.

Copy a code sample

You can one-click copy code samples from API operation pages to use in your work. This function is especially useful with long code fragments.

To copy a code sample:

  • In the top-right corner of the code sample, click the copy icon.

You can now paste the code into another application.

Report an issue in a code sample

If you see an error or an inconsistency in a code sample, you can report it to the project's owner.

To to report a problem with a code sample:

  • In the top-right corner of the code sample, click the exclamation mark icon.
  • Describe the issue.
  • Click Send.

Your message is sent to the organization that owns the project.

Provide feedback for an API operation

You can send feedback for each operation A project can have different types of feedback forms:

  • thumbs up or down icons
  • mood icons: satisfied, neutral or unsatisfied
  • a rating in the form of icons, typically from 1 to 5 stars
  • a numerical scale, typically between 1 and 10
  • a comment

After you interact with a form (except the comment form), a text field is displayed. In this field, you can add more details to your feedback.

If you are logged in your project, your email address is automatically added to the feedback content. The owners of the project can use the address to follow-up with you on your comment. If are not logged in, or the project does not have login enabled, an optional Email field is displayed.

After you click Send, your feedback is submitted.

Resources