TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Accepts only OPTIONS and lists the per-verb test endpoints

OPTIONShttps://api.testingapis.com/api/methods/options

A plain OPTIONS request reaches this action. A CORS preflight (with Origin and Access-Control-Request-Method) is answered by the CORS middleware instead.

Responses

200
An Allow header plus the endpoint list.
405
Any other verb.

Example

Request
curl -X OPTIONS "https://api.testingapis.com/api/methods/options"
Response200 OK
Allow: OPTIONS

{
  "method": "OPTIONS",
  "message": "OPTIONS request received.",
  "endpoints": [
    {"method": "GET", "path": "/api/methods/get"},
    {"method": "POST", "path": "/api/methods/post"},
    "… 5 more items"
  ]
}