{"info":{"_postman_id":"7656b424-4600-4f31-ab6d-930d64e1aae6","name":"Earthquake API","description":"<html><head></head><body><p>REST API for earthquake data with JWT authentication and Redis cache. Provides CRUD operations for earthquake records with pagination support.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"45700405","collectionId":"7656b424-4600-4f31-ab6d-930d64e1aae6","publishedId":"2sBXqNkdGs","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-05-08T11:45:21.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register","id":"b972ad3e-c209-43f1-a446-8ec450be0289","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"testuser\",\n  \"password\": \"test123\"\n}"},"url":"http://localhost:8080/api/auth/register","description":"<p>Register a new user. Returns JWT token along with username and role.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","auth","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b972ad3e-c209-43f1-a446-8ec450be0289"},{"name":"Login","id":"d537affd-986e-4345-b351-8b8836512ff4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"username\": \"admin\",\n  \"password\": \"admin123\"\n}"},"url":"http://localhost:8080/api/auth/login","description":"<p>Login with existing credentials. Returns JWT token for accessing protected endpoints.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","auth","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d537affd-986e-4345-b351-8b8836512ff4"}],"id":"73365af2-a718-4e30-a454-cffe9d86b6c4","description":"<p>User authentication endpoints for registration and login</p>\n","_postman_id":"73365af2-a718-4e30-a454-cffe9d86b6c4"},{"name":"Earthquakes","item":[{"name":"Get All Earthquakes","id":"2998d94b-22d4-4782-a444-088f2f9e50e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/earthquakes?page=0&size=20&sort=magnitude,desc","description":"<p>Get paginated list of earthquakes. Public endpoint - no authentication required. Supports sorting by magnitude, time, depth, etc.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","earthquakes"],"host":["localhost"],"query":[{"description":{"content":"<p>Page number (0-indexed)</p>\n","type":"text/plain"},"key":"page","value":"0"},{"description":{"content":"<p>Number of items per page (max 20)</p>\n","type":"text/plain"},"key":"size","value":"20"},{"description":{"content":"<p>Sort field and direction (e.g., magnitude,desc or time,asc)</p>\n","type":"text/plain"},"key":"sort","value":"magnitude,desc"}],"variable":[]}},"response":[],"_postman_id":"2998d94b-22d4-4782-a444-088f2f9e50e8"},{"name":"Get Earthquake by ID","id":"98c4b7ab-c66f-4166-afe4-fc1a7d985aa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/api/earthquakes/1","description":"<p>Get a single earthquake by ID. Public endpoint - no authentication required.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","earthquakes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"98c4b7ab-c66f-4166-afe4-fc1a7d985aa6"},{"name":"Create Earthquake","id":"eab0172c-8533-465f-8b5a-5693b6dd3f76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"magnitude\": 6.5,\n  \"location\": \"Bakı, Azərbaycan\",\n  \"latitude\": 40.4093,\n  \"longitude\": 49.8671,\n  \"depth\": 15.0,\n  \"time\": \"2024-05-08T12:00:00\",\n  \"tsunamiAlert\": \"No\",\n  \"type\": \"earthquake\"\n}"},"url":"http://localhost:8080/api/earthquakes","description":"<p>Create a new earthquake record. Requires ADMIN role. Token must be provided in Authorization header.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","earthquakes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eab0172c-8533-465f-8b5a-5693b6dd3f76"},{"name":"Update Earthquake","id":"0ab24d96-c119-465d-81b7-59d70931757b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"magnitude\": 7.0,\n  \"tsunamiAlert\": \"Yes\"\n}"},"url":"http://localhost:8080/api/earthquakes/1","description":"<p>Update an existing earthquake record. Requires ADMIN role. Partial updates supported - only send fields you want to change.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","earthquakes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0ab24d96-c119-465d-81b7-59d70931757b"},{"name":"Delete Earthquake","id":"81faff87-5e05-4b43-ae7c-5d9484abcb08","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":""}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/earthquakes/1","description":"<p>Delete an earthquake record by ID. Requires ADMIN role.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","earthquakes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"81faff87-5e05-4b43-ae7c-5d9484abcb08"}],"id":"2c499f08-5c78-4445-bf02-a4ad203bd256","description":"<p>CRUD operations for earthquake data</p>\n","_postman_id":"2c499f08-5c78-4445-bf02-a4ad203bd256"}],"variable":[{"key":"jwt_token","value":"","type":"string"}]}