Description Usage Arguments Value Functions
Document development functions
Extension development functions
Extension development functions
Extension development functions
Extension development functions
Query development functions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | RLCCSDocument(content, q, subclass)
endpoint(q)
before_request(q)
after_response(q, res)
content_response(res, status_codes, content_types)
check_query_verb(q, verbs, msg = NULL)
check_subclass(x, subclasses)
subclass(x)
omit_query_params(q, names)
RLCCSQuery(
base_url,
params = list(),
token = NULL,
subclass,
query_type = "key",
encode = NULL
)
|
content |
a |
q |
a |
subclass |
a |
res |
a |
status_codes |
a |
content_types |
a |
verbs |
a |
msg |
a |
x |
either a |
subclasses |
a |
names |
a |
base_url |
a |
params |
a named |
token |
a |
query_type |
a To send 'key': 'value' to the server, use the type |
encode |
a |
The RLCCSDocument()
function returns a RLCCSDocument
object
with subclass defined by subclass
parameter.
A character
endpoint value for endpoint()
function.
A RLCCSQuery
object for before_request()
and
after_response()
functions.
The content_response()
function returns a list
data structure
representing the JSON file received in HTTP response
The RSTACQuery()
function returns a STACQuery
object with
subclass defined by subclass
parameter.
RLCCSDocument
: The RLCCSDocument()
function is a constructor of
LCCS documents. Currently, this class is used to represent the return of all
LCCS-WS endpoints. The general use of this document is possible since the
service return follows the same hierarchical structure.
content_response
: The content_response
function checks if the request's
response is in accordance with the allowed status codes and content-types.
It returns the parsed content response.
check_query_verb
: The check_query_verb()
function allows you to define which HTTP
verbs are allowed. It is useful for establishing which verbs will be
supported by an extension.
check_subclass
: The check_subclass()
function specifies which type of query
objects (RLCCSQuery
) or document objects (RLCCSDocument
)
are expected in the function extension.
subclass
: The subclass()
function returns a character
representing the
subclass name of either RLCCSQuery
or RSTACDocument
S3 classes.
omit_query_params
: The omit_query_params()
function was created to omit the paths that
are defined as query parameters to simplify the creation of a query.
Therefore, use this method only in endpoints that specify a parameter in
their paths.
RLCCSQuery
: The RLCCSQuery()
function is a constructor of RLCCSQuery
objects. Every extension must implement a subclass of RLCCSQuery
to
represent its queries. This is done by informing to the subclass
parameter the extension's subclass name.
The params
parameter is a named list
where user parameters
must be stored. It is important to know if previous query parameters needs
to be keeped in the new query. If so, it is recommended do use
modifyList()
function to merge the old and new
query parameters.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.