Retrieve Car Owner Users

GET /user/users/car_owners/

Admins can use the GET /user/users/car_owners/ endpoint to view a list of all car owner users.


Parameters

Name

Type

Location

Description

None

No parameters are required for this request.


Responses

Status Code

Description

200

Successfully retrieved the list of car owner users.

Example Response

[
    {
        "id": 1,
        "username": "john_doe",
        "email": "john_doe@example.com",
        "first_name": "John",
        "last_name": "Doe",
        "phone_number": "+1234567890",
        "car_details": [
            {
                "car_id": 101,
                "make": "Toyota",
                "model": "Camry",
                "year": 2020
            },
            {
                "car_id": 102,
                "make": "Honda",
                "model": "Accord",
                "year": 2018
            }
        ]
    },
    {
        "id": 2,
        "username": "jane_smith",
        "email": "jane_smith@example.com",
        "first_name": "Jane",
        "last_name": "Smith",
        "phone_number": "+9876543210",
        "car_details": [
            {
                "car_id": 103,
                "make": "Ford",
                "model": "Focus",
                "year": 2019
            }
        ]
    }
]

Last updated