Skip to content

HTTP Methods

Pingward supports all standard HTTP methods for testing your APIs.

Supported Methods

MethodDescriptionUse Case
GETRetrieve dataHealth checks, read endpoints
POSTSubmit dataCreate operations, form submissions
PUTReplace dataFull update operations
PATCHPartial updatePartial modifications
DELETERemove dataDeletion endpoints
HEADHeaders onlyLightweight availability checks
OPTIONSCORS preflightTesting CORS configuration

Choosing the Right Method

GET Requests

Best for:

  • Health check endpoints
  • Read-only API endpoints
  • Endpoints that return status information
GET https://api.example.com/health

POST Requests

Best for:

  • Testing endpoints that create resources
  • Validating request body handling
  • Authentication endpoints
POST https://api.example.com/auth/login
Content-Type: application/json

{"username": "test", "password": "test"}

HEAD Requests

Best for:

  • Lightweight availability checks (no body transferred)
  • Checking if resources exist
  • Validating headers without downloading content

Method-Specific Considerations

Request Body

  • GET and HEAD requests typically don't have a body
  • POST, PUT, and PATCH usually require a body
  • DELETE may or may not have a body

Idempotency

Consider how often your test runs. For non-idempotent operations (like POST that creates records), you may want to:

  • Use a test/sandbox environment
  • Clean up created resources
  • Use special test endpoints that don't persist data

Pingward - API Monitoring Made Simple