gp_check_clip_endpoint: Basic sanity check of the plumber endpiont

View source: R/endpoint_from_clip.R

gp_check_clip_endpointR Documentation

Basic sanity check of the plumber endpiont

Description

Use this function to check that:

Usage

gp_check_clip_endpoint(evaluate = FALSE)

Arguments

evaluate

should clipboard function be evaulated? Default is (FALSE)

Details

  1. There is an endpoint "/api/test" etc.

  2. There is a "tag" such as @get/@post

  3. Defines a function with/without params

  4. Serves a content-type https://www.w3.org/TR/html4/types.html#h-6.7. No specific checks on the return for now just !is.null()

  5. TODO: content-type matches

using clipr we read from the clipboard

Value

number of warnings

Examples

## Not run: 
gp_check_clip_endpoint()

## End(Not run)

ATFutures/geoplumber documentation built on July 4, 2023, 12:18 a.m.