Use this function to check that:

gp_check_clip_endpoint(evaluate = FALSE)

Arguments

evaluate

should clipboard function be evaulated? Default is (FALSE)

Value

number of warnings

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

Examples

if (FALSE) { gp_check_clip_endpoint() }