Skip to content

Tweak API to be friendlier to use from cURL and HTML forms

Benjamin Herman requested to merge change/curl-friendly-responses into main
  • Remove ESLint as a dev dependency
  • Invoke ESLint from the package runner
  • Include helper modules in the NPM "lint" script
  • Fix eslint switch styling rule
  • Replace koa-bodyparser with custom body parsing middleware
  • Make allowed methods middleware throw errors to be modified by the custom error handler
  • Rewrite validation in terms of assertions where possible
  • Make "hash" field an alias for "data" field in "POST /stamp" route
  • Remove "status" field from "POST /stamp" responses
  • Improve error messages
  • Rewrite error handle to prefer sending plaintext responses ending with newline (cURL friendly)
  • Rewrite pending proofs subhandler to prefer sending plaintext responses ending with newline (cURL friendly)
  • Remove "Status Remove test expectation of "status" field

Merge request reports

Loading