Creates a Plumber API router for the ROMOPAPI package with predefined endpoints for health checks and ID processing. The API includes automatic documentation and CORS support.
create_api()A plumber router object with configured endpoints
GET /health - Health status check
GET /process-ids - Process comma-separated list of IDs
POST /batch-process - Process batch of IDs via JSON
if (FALSE) { # \dontrun{
# Create the API
api <- create_api()
# Run the API
plumber::pr_run(api, port = 8000)
# Access health endpoint
# GET /health
# Process IDs
# GET /process-ids?ids=1,2,3
} # }