postgres_post: Send POST Request to Postgres API

Description Usage Arguments Value

View source: R/postgres.R

Description

Send POST Request to Postgres API

Usage

1
postgres_post(path, body = NULL, encode = "json", ...)

Arguments

path

relative path, e.g. users/3/bathingspots/18/genericInputs to create a generic input for bathing spot of user 3 with ID 18

body

list with the fields to be set as key = value pairs, e.g. list(name = "lirum larum")

encode

passed to POST. Default: "json". Set to "multipart" for uploading files!

...

further arguments passed to fhpredict:::postgres_request

Value

In case of success this function returns what httr::content(response, as = "parsed") returns. In case of failure an empty list with attribute response (containing the response object returned by POST) is returned.


KWB-R/fhpredict documentation built on Nov. 1, 2020, 5:58 a.m.