| GET | /warranty/v1/user/{username*} |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UserResponse:
iss: Optional[str] = None
aud: Optional[List[str]] = None
sub: Optional[str] = None
email: Optional[str] = None
azp: Optional[str] = None
locale: Optional[List[str]] = None
exp: Optional[str] = None
iat: Optional[str] = None
time: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class UserRequest:
username: Optional[str] = None
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /warranty/v1/user/{username*} HTTP/1.1
Host: qp-microservices-booster.richemont.com
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
iss: String,
aud:
[
String
],
sub: String,
email: String,
azp: String,
locale:
[
String
],
exp: String,
iat: String,
time: String
}