1.Explain RESTful API design principles
Answer
Design resource-oriented URLs with nouns such as GET /users/123, use HTTP verbs correctly, return proper status codes (200, 201, 204, 400, 401, 404, 429, 500), and version via /v1. Keep responses consistent with pagination, filtering and sorting, support idempotency for unsafe retries, and document with OpenAPI. Secure with auth, rate limiting and validation, and never expose internal errors to clients.