{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/infoservices.guisoft.pt"
        }
    ],
    "info": {
        "name": "InfoServices API Documentation",
        "_postman_id": "d5211b6a-162f-4462-b1d3-1807d6995d30",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Authentication",
            "description": "\nAPIs for user authentication",
            "item": [
                {
                    "name": "Authenticate a user and generate an API token",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/auth\/login",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/auth\/login"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"john_doe\",\"password\":\"password123\"}"
                        },
                        "description": "",
                        "auth": {
                            "type": "noauth"
                        }
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n    \"message\": \"Login successful\",\n    \"token\": \"1|a1b2c3d4e5f6g7h8i9j0...\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 401,
                            "body": "{\n    \"message\": \"Unauthorized\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        },
        {
            "name": "Vehicles",
            "description": "\nAPIs for retrieving vehicle information",
            "item": [
                {
                    "name": "Get vehicle mileage by license plate",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/vehicle\/plate\/:plate\/mileage",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/vehicle\/plate\/:plate\/mileage",
                            "variable": [
                                {
                                    "id": "plate",
                                    "key": "plate",
                                    "value": "07-IS-81",
                                    "description": "The license plate of the vehicle."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint retrieves the mileage information for a vehicle identified by its license plate."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"data\": {\n     \"plate\": \"07IS81\",\n     \"vin\": \"TEST82633A123456\",\n     \"events\": [\n         {\n             \"event_date\": \"2015-10-13 00:00:00\",\n             \"vehicle_mileage\": 200000\n         },\n         {\n             \"event_date\": \"2015-03-06 00:00:00\",\n             \"vehicle_mileage\": 171000\n         },\n     ]\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n  \"message\": \"This action is unauthorized.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n  \"message\": \"Vehicle not found\"\n}",
                            "name": ""
                        }
                    ]
                },
                {
                    "name": "Get vehicle mileage by VIN",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/vehicle\/vin\/:vin\/mileage",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/vehicle\/vin\/:vin\/mileage",
                            "variable": [
                                {
                                    "id": "vin",
                                    "key": "vin",
                                    "value": "1TEST82633A123456",
                                    "description": "The Vehicle Identification Number (VIN)."
                                }
                            ]
                        },
                        "method": "GET",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": null,
                        "description": "This endpoint retrieves the mileage information for a vehicle identified by its Vehicle Identification Number (VIN)."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\n \"data\": {\n     \"plate\": \"07IS81\",\n     \"vin\": \"TEST82633A123456\",\n     \"events\": [\n         {\n             \"event_date\": \"2015-10-13 00:00:00\",\n             \"vehicle_mileage\": 200000\n         },\n         {\n             \"event_date\": \"2015-03-06 00:00:00\",\n             \"vehicle_mileage\": 171000\n         },\n     ]\n }\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\n \"message\": \"This action is unauthorized.\"\n}",
                            "name": ""
                        },
                        {
                            "header": [],
                            "code": 404,
                            "body": "{\n \"message\": \"Vehicle not found\"\n}",
                            "name": ""
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "bearer",
        "bearer": [
            {
                "key": "key",
                "type": "string"
            }
        ]
    }
}