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-67688ba38e90b631049918/]

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

[crayon-67688ba38e915489748902/]

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-67688ba38e918484241291/]
[crayon-67688ba38e91a347293878/]

EndPointResponseDetails

Description of the request responses:

[crayon-67688ba38e91c114893691/]
[crayon-67688ba38e91d777206314/]

EndPointObjectsYAMLDefinitions

Definition of objects for the API YAML version.

[crayon-67688ba38e91f364970368/]
[crayon-67688ba38e921188317440/]

EndPointObjectsJSONDefinitions

Definition of objects for the API JSON version.

[crayon-67688ba38e922213096981/]
[crayon-67688ba38e924543731850/]
Exit mobile version