{
    "variable": [
        {
            "id": "baseUrl",
            "key": "baseUrl",
            "type": "string",
            "name": "string",
            "value": "https:\/\/uk-fuel-price.uk.test-two.flt-dev.ru"
        }
    ],
    "info": {
        "name": "UK_Fuel_Price",
        "_postman_id": "370e8bd4-e5a7-45c6-8495-aa0281a45329",
        "description": "",
        "schema": "https:\/\/schema.getpostman.com\/json\/collection\/v2.1.0\/collection.json"
    },
    "item": [
        {
            "name": "Endpoints",
            "description": "",
            "item": [
                {
                    "name": "Checking user registration.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/user\/login",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/user\/login"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"email\":\"bernadine31@example.org\"}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"name\": \"123\",\"email\": \"test123@test.test\",\"requestsToWeek\": 3,\"HTMLResponse\": {\"StatusCode\": 200,\"Description\": \"Request OK\"}}",
                            "name": "User is registered"
                        },
                        {
                            "header": [],
                            "code": 203,
                            "body": "{\"status\": \"error\",\"message\": \"User not found!\"}",
                            "name": "User not found!"
                        }
                    ]
                },
                {
                    "name": "User registration.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/user\/registration",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/user\/registration"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"name\":\"jqvbdsseyfgkwim\",\"email\":\"lee.keeling@example.com\",\"phone\":\"r\",\"legalNotice\":false}"
                        },
                        "description": ""
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"name\": \"123\",\"email\": \"test123@test.test\",\"requestsToWeek\": 3,\"HTMLResponse\": {\"StatusCode\": 200,\"Description\": \"Request OK\"}}",
                            "name": "User is registered"
                        },
                        {
                            "header": [],
                            "code": 208,
                            "body": "{\"status\": \"error\",\"message\": \"The user already exists.\"}",
                            "name": "The user already exists."
                        }
                    ]
                },
                {
                    "name": "List of cities\/postal codes by the first 3 characters.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/stations\/searchList",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/stations\/searchList"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"search\":\"lon\"}"
                        },
                        "description": "After the user enters 3 characters, you can query the server for all options that have these characters in them."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"list\": [\"LONDON\",\"LONDONDERRY\",\"ELLON\",\"LONGNIDDRY\",\"LONGFIELD\",\"ISLE OF COLONSAY\"],\"HTMLResponse\": {\"StatusCode\": 200,\"Description\": \"Request OK\"}}",
                            "name": "List"
                        }
                    ]
                },
                {
                    "name": "Station Search.",
                    "request": {
                        "url": {
                            "host": "{{baseUrl}}",
                            "path": "api\/stations\/search",
                            "query": [],
                            "raw": "{{baseUrl}}\/api\/stations\/search"
                        },
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application\/json"
                            },
                            {
                                "key": "Accept",
                                "value": "application\/json"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\"search\":\"lon\",\"email\":\"emmanuel28@example.net\",\"radius\":\"10\"}"
                        },
                        "description": "Outputs all stations that match the parameters."
                    },
                    "response": [
                        {
                            "header": [],
                            "code": 200,
                            "body": "{\"User\":{\"name\":\"123\",\"email\":\"test123@test.test\",\"RequestsToWeek\":5},\"Stations\":[{\"id\":5,\"fuelBrandName\":\"ESSO\",\"siteName\":\"MFG WARLINGHAM\",\"address\":\"LIMPSFIELD ROAD\",\"suburb\":\"\",\"town\":\"WARLINGHAM\",\"county\":\"SURREY\",\"postcode\":\"CR6 9LA\",\"petrol\":{\"id\":20255,\"station_id\":5,\"fuel_id\":2,\"priceDate\":\"2023-01-02\",\"lowestPrice\":1539,\"lowestPriceTime\":\"11:37:00\",\"highestPrice\":1539,\"highestPriceTime\":\"11:37:00\",\"lastPrice\":1539,\"lastPriceTime\":\"11:37:00\",\"modalPrice\":1539,\"averagePrice\":1539,\"created_at\":\"2023-01-04T20:45:47.000000Z\",\"updated_at\":\"2023-01-04T20:45:47.000000Z\"},\"disel\":{\"id\":20256,\"station_id\":5,\"fuel_id\":6,\"priceDate\":\"2023-01-03\",\"lowestPrice\":1779,\"lowestPriceTime\":\"07:38:00\",\"highestPrice\":1779,\"highestPriceTime\":\"07:38:00\",\"lastPrice\":1779,\"lastPriceTime\":\"07:38:00\",\"modalPrice\":1779,\"averagePrice\":1779,\"created_at\":\"2023-01-04T20:45:47.000000Z\",\"updated_at\":\"2023-01-04T20:45:47.000000Z\"}}],\"HTMLResponse\":{\"StatusCode\":200,\"Description\":\"Request OK\"}}",
                            "name": "User"
                        },
                        {
                            "header": [],
                            "code": 203,
                            "body": "{\"status\": \"error\",\"message\": \"User not found!\"}",
                            "name": "User not found!"
                        },
                        {
                            "header": [],
                            "code": 403,
                            "body": "{\"status\":\"error\",\"message\":\"Request limit exceeded!\"}",
                            "name": "Request limit exceeded!"
                        }
                    ]
                }
            ]
        }
    ],
    "auth": {
        "type": "apikey",
        "apikey": [
            {
                "key": "in",
                "value": "header",
                "type": "string"
            },
            {
                "key": "key",
                "value": "X-Authorization",
                "type": "string"
            }
        ]
    }
}