Find user by User ID.

GET /api/v1/users/{id}

Path parameters

  • id string Required

    User ID.

Responses

  • 401 */*

    Unauthorized

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 404 */*

    Not Found

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 500 */*

    Internal Server Error

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 400 */*

    Bad Request

    Hide response attribute Show response attribute object
    • error object
      Hide error attributes Show error attributes object
      • code string
      • message string
      • target string
      • details array[object]
        Hide details attributes Show details attributes object
        • code string
        • message string
        • target string
  • 200 */*

    User found.

    Hide response attributes Show response attributes object
    • id string
    • firstName string
    • lastName string
    • email string
    • streetName string
    • houseNumber string
    • zipCode integer(int32)
    • city string
    • country string
    • phoneNumber string
    • aboutMe string
    • favGenres array[string]
    • books array[object]
      Hide books attributes Show books attributes object
      • id string
      • title string
      • author string
      • genres array[string]
      • language string
      • description string
      • condition string
      • coverPhotoUrl string
      • bookLocation string
      • offeredAgo string
      • ownerId string
      • offeredBy string
    • favBooks array[object]
      Hide favBooks attributes Show favBooks attributes object
      • id string
      • title string
      • author string
      • genres array[string]
      • language string
      • description string
      • condition string
      • coverPhotoUrl string
      • bookLocation string
      • offeredAgo string
      • ownerId string
      • offeredBy string
GET /api/v1/users/{id}
curl \
 --request GET 'http://localhost:8080/api/v1/users/{id}'
Response examples (401)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (404)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (500)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (400)
{
  "error": {
    "code": "string",
    "message": "string",
    "target": "string",
    "details": [
      {
        "code": "string",
        "message": "string",
        "target": "string"
      }
    ]
  }
}
Response examples (200)
{
  "id": "string",
  "firstName": "string",
  "lastName": "string",
  "email": "string",
  "streetName": "string",
  "houseNumber": "string",
  "zipCode": 42,
  "city": "string",
  "country": "string",
  "phoneNumber": "string",
  "aboutMe": "string",
  "favGenres": [
    "string"
  ],
  "books": [
    {
      "id": "string",
      "title": "string",
      "author": "string",
      "genres": [
        "string"
      ],
      "language": "string",
      "description": "string",
      "condition": "string",
      "coverPhotoUrl": "string",
      "bookLocation": "string",
      "offeredAgo": "string",
      "ownerId": "string",
      "offeredBy": "string"
    }
  ],
  "favBooks": [
    {
      "id": "string",
      "title": "string",
      "author": "string",
      "genres": [
        "string"
      ],
      "language": "string",
      "description": "string",
      "condition": "string",
      "coverPhotoUrl": "string",
      "bookLocation": "string",
      "offeredAgo": "string",
      "ownerId": "string",
      "offeredBy": "string"
    }
  ]
}