
REST API Design
REST principles, versioning, pagination, filtering, HATEOAS, status codes, OpenAPI/Swagger
1What is the fundamental principle of REST?
What is the fundamental principle of REST?
Cevap
REST is based on the principle of representing resources accessible via unique URIs. Each resource (user, product, order) has a URI and can be manipulated through standard HTTP verbs (GET, POST, PUT, DELETE). This resource-oriented paradigm enables a scalable and decoupled architecture where the server does not store client session state.
2Which HTTP method should be used for an idempotent full update of a resource?
Which HTTP method should be used for an idempotent full update of a resource?
Cevap
PUT is idempotent and completely replaces the resource. Calling PUT multiple times with the same data produces the same result as a single call. In contrast, POST is not idempotent (would create multiple resources), PATCH performs partial updates, and DELETE removes the resource. PUT's idempotence guarantees retry safety in case of network errors.
3Which HTTP code should be returned after successful creation of a new resource?
Which HTTP code should be returned after successful creation of a new resource?
Cevap
The 201 Created code indicates that a resource was successfully created. It is accompanied by a Location header pointing to the URI of the new resource. The 200 OK code is too generic for creation, 204 No Content is used when there is no response body, and 202 Accepted signals asynchronous processing not yet complete.
What major difference distinguishes a REST API from an RPC API?
What does the statelessness principle mean in REST?
+17 mülakat soruları
Diğer Go mülakat konuları
Go Basics
Go Data Structures
Go Interfaces
Error Handling
Goroutines Basics
Channels
Go Modules
HTTP Server
HTTP Client
JSON Encoding
database/sql
Context Package
Testing
Concurrency Patterns
Sync Primitives
Go Web Frameworks
gRPC
Reflection
Memory Management
Performance Optimization
Generics
Go Design Patterns
Microservices
Security & Authentication
Docker & Containerization
Kubernetes Basics
Advanced Go
CLI Development
Bir sonraki mülakatın için Go'de uzmanlaş
Tüm sorulara, flashcards'a, teknik testlere, code review alıştırmalarına ve mülakat simülatörlerine eriş.
Ücretsiz başla