apidoc-example-union-types-discriminator 0.3.46

  • Contact: N/A
  • License: N/A

Resources

user

Operations

Method and Path Description
GET /users
GET /users/:id
POST /users

Headers

No headers

Imports

No imports

Enums

system_user

system
anonymous

Models

guest_user

Example Json: Minimal | Full
Field Type Required? Default Description
id string Yes -

Internal unique identifier for this user.

email string No -

registered_user

Example Json: Minimal | Full
Field Type Required? Default Description
id string Yes -

email string Yes -

Unions

user

Example Json: Minimal | Full
  • Type discriminator: discriminator
registered_user
guest_user
system_user
string