Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

How-To: Generating Documentation for RAD Server APIs

RAD Studio allows you to create API documentation for new RAD Server Resource modules in YAML and JSON format. The new implementation is based in the Swagger RESTful API Documentation Specification.

EMS.ResourceType implements the new attributes that can be used to generate API documentation for the EndPoints of a Resource.

EndPointRequestSummary

Description of a method:

[crayon-6740341313277794997080/]

Example of description declaration of a GET method of an EndPoint:

[crayon-674034131327f067117326/]

EndPointRequestParameter

Description of the parameters used in a request.

A unique parameter is defined by a combination of a name and location.

There are five possible parameter types: Path, Query, Header, Body, and Form.

[crayon-6740341313281483059669/]
[crayon-6740341313283344479388/]

EndPointResponseDetails

Description of the request responses:

[crayon-6740341313285647524579/]
[crayon-6740341313286974069433/]

EndPointObjectsYAMLDefinitions

Definition of objects for the API YAML version.

[crayon-6740341313288318320124/]
[crayon-6740341313289740081919/]

EndPointObjectsJSONDefinitions

Definition of objects for the API JSON version.

[crayon-674034131328b471960014/]
[crayon-674034131328c443133482/]
Exit mobile version