beginnerREST Fundamentals

What are the main HTTP methods used in REST APIs, and what does each represent?

GET retrieves a resource without side effects (safe and idempotent); POST creates a new resource or triggers a non-idempotent action; PUT replaces an entire resource with the given representation (idempotent — calling it twice with the same body has the same effect as once); DELETE removes a resource (idempotent). Correctly matching intent to verb is what makes an API behave predictably for clients, caches, and retry logic.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

What are the main HTTP methods used in REST APIs, and what does each represent?

Next Step

Continue to How do you detect connection pool leaks in production before they exhaust the pool entirely?← Back to all Spring Boot & Microservices questions