What is API contract testing?
Contract testing verifies that provider behavior matches an agreed API contract and consumer expectations.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 661–672 of 3610 questions
Contract testing verifies that provider behavior matches an agreed API contract and consumer expectations.
Bulk endpoints reduce round trips but need limits, per-item validation, and clear partial-failure semantics.
401 means valid authentication credentials are absent or unacceptable; 403 means the server understood the request but refuses authorization.
For work that exceeds normal request latency, create a job resource and return 202 Accepted with a status URL.
Rate limits bound request volume over a time window; quotas can limit longer-term consumption.
Use ISO 8601 timestamps with explicit UTC offsets or Z for instants, and distinguish instants from date-only values.
GraphQL is a query language and runtime for APIs in which clients request fields from a typed schema.
A schema defines the API's types, fields, arguments, and operations.
Queries read data and mutations perform state-changing operations.
Resolvers provide values for schema fields.
The N+1 problem occurs when resolving a list triggers one additional data query per item.
Enforce authentication and object/field-level authorization in resolver context or the underlying service.