public interface Api extends RAMLLanguageElement
| Modifier and Type | Method and Description |
|---|---|
FullUriTemplateString |
baseUri()
(Optional during development; Required after implementation) A RESTful API's resources are defined relative to the API's base URI.
|
List<Parameter> |
baseUriParameters()
Base uri parameters are named parameters which described template parameters in the base uri
|
List<DocumentationItem> |
documentation()
The API definition can include a variety of documents that serve as a user guides and reference documentation for the API.
|
MimeType |
mediaType()
(Optional) The media types returned by API responses, and expected from API requests that accept a body, MAY be defaulted by specifying the mediaType property.
|
List<String> |
protocols()
A RESTful API can be reached HTTP, HTTPS, or both.
|
String |
RAMLVersion()
Returns AST node of security scheme, this reference refers to, or null.
|
List<Resource> |
resources()
Resources are identified by their relative URI, which MUST begin with a slash (/).
|
List<ResourceType> |
resourceTypes()
Declaration of resource types used in this API
|
List<GlobalSchema> |
schemas()
To better achieve consistency and simplicity, the API definition SHOULD include an OPTIONAL schemas property in the root section.
|
List<SecuritySchemeRef> |
securedBy()
A list of the security schemes to apply to all methods, these must be defined in the securitySchemes declaration.
|
List<AbstractSecurityScheme> |
securitySchemes()
Security schemes that can be applied using securedBy
|
String |
title()
The title property is a short plain text description of the RESTful API.
|
List<Trait> |
traits()
Declarations of traits used in this API
|
List<Parameter> |
uriParameters()
URI parameters can be further defined by using the uriParameters property.
|
String |
version()
If the RAML API definition is targeted to a specific API version, the API definition MUST contain a version property.
|
descriptionString title()
String version()
FullUriTemplateString baseUri()
List<Parameter> baseUriParameters()
List<Parameter> uriParameters()
List<String> protocols()
MimeType mediaType()
List<GlobalSchema> schemas()
List<SecuritySchemeRef> securedBy()
List<AbstractSecurityScheme> securitySchemes()
List<ResourceType> resourceTypes()
List<Resource> resources()
List<DocumentationItem> documentation()
String RAMLVersion()
Copyright © 2016. All rights reserved.