extensions: Document development functions

Description Usage Arguments Value Functions

Description

Document development functions

Extension development functions

Extension development functions

Extension development functions

Extension development functions

Query development functions

Usage

 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
)

Arguments

content

a list data structure representing the JSON file received in HTTP response (see content_response() function)

q

a RLCCSQuery object.

subclass

a character corresponding to the subclass of the object to be created.

res

a httr response object.

status_codes

a character vector with successful status codes.

content_types

a character vector with all acceptable responses' content type.

verbs

a character vector with allowed HTTP request methods

msg

a character with a personalized error message

x

either a RLCCSQuery object expressing a LCCS query criteria or any RLCCSDocument.

subclasses

a character vector with all allowed S3 subclasses

names

a character vector with the names do omit.

base_url

a character informing the base url of a LCCS-WS (LCCS-WS-SPEC 0.6)

params

a named list with all URL query parameters to be appended in the URL.

token

a character informing the authentication token in the BDC-OAuth service. This token is used for the service's administrative operations through the HTTP verbs POST, PUT, DELETE.

query_type

a character representing the type of document that should be sent to the LCCS-WS. With this parameter, you can specify when rlccs should send the document in the format of a list (query_type = list) or a document with JSON keys (query_type = key). Examples of use are given below:

To send 'key': 'value' to the server, use the type key. On the other hand, sending ['key': 'value'] must be done with a type list

encode

a character informing the request body Content-Type. Accepted types are 'json' ('application/json'), 'form' ('application/x-www-form-urlencoded'), and 'multipart' ('multipart/form-data'). Defaults to 'json'.

Value

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.

Functions


brazil-data-cube/rlccs documentation built on Feb. 28, 2021, 5:50 p.m.