VALIDATION LABAPI DOCS

API Docs

Swagger-style OpenAPI Reference

Review endpoints, parameters, headers, request bodies, response schemas, and examples before practicing in the QA Lab.

Base information

Base URL

https://lab.hakdogan.com

Auth type

Bearer token

Content type

application/json

Version

1.0.0

Endpoints

OpenAPI paths grouped by tag

Users

Description

Retrieve one user profile and validate the contract used by account and admin screens.

Parameters

NameInTypeRequiredDescription
idpathstringYesUser identifier, for example u-1001.

Headers

NameExampleRequiredDescription
AuthorizationBearer qa-training-tokenYesAuthenticated QA training token.
Acceptapplication/jsonYesClient expects JSON.

Request body example

No request body

Response examples

200Successful response
{
  "id": "u-1001",
  "email": "alex@hakdogan.com",
  "role": "qa",
  "isActive": true,
  "lastLogin": "2026-05-02T21:18:00Z"
}
400Error response
{
  "error": "bad_request",
  "message": "Request parameters are invalid"
}

Response schema

FieldTypeRequiredDescription
idstringYesStable user id.
emailstringYesPrimary account email.
rolestringYesCurrent permission role.
isActivebooleanYesBoolean flag used by UI badges.
lastLoginstringYesISO timestamp shown in audit history.

Try it out

Execute a reference example using the documented contract.

Orders

Reports

Sessions

Schemas

Models

User schema

FieldTypeRequiredDescription
idstringYesStable user identifier.
emailstringYesPrimary email address.
rolestringYesPermission role such as user, qa, or admin.
isActivebooleanYesCurrent account activation state.
lastLoginstringYesISO timestamp for most recent login.