Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export namespace APP_DEF {
  2.   export type schema = {
  3.    "app_id": UUID_DEF.schema,
  4.    "account_uuid": UUID_DEF.schema,
  5.    "app_name"?: "string",
  6.    "status"?: "string",
  7.   }
  8.   export const required = [
  9.    "app_id",
  10.    "account_uuid",
  11.   ];
  12.   export const defaults = {
  13.    "app_id": "123asd",
  14.    "account_uuid": null,
  15.   }
  16. }
  17. export namespace USER_DEF {
  18.   export type schema = {
  19.    "user_id"?: UUID_DEF.schema,
  20.    "username": "string",
  21.    "email"?: "string",
  22.   }
  23.   export const required = [
  24.    "username",
  25.   ];
  26.   export const defaults = {
  27.    "user_id": 123,
  28.   }
  29. }
  30. export namespace UUID_DEF {
  31.   export type schema = String;
  32.   export const pattern = "^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$";
  33. }
  34. export namespace ACCOUNTS_ACCOUNT_accountid_EP {
  35.   export const url = "/accounts/account/{account-id}";
  36.   export namespace GET {
  37.    export namespace request {
  38.       export type schema =     {
  39.        "account_id": UUID_DEF.schema,
  40.       }
  41.       export const required = [
  42.        "account_id",
  43.       ];
  44.    }
  45.    export namespace response {
  46.       export type schema =     {
  47.        "account_id": UUID_DEF.schema,
  48.       }
  49.       export const required = [
  50.        "account_id",
  51.       ];
  52.    }
  53.   }
  54.   export namespace POST {
  55.    export namespace request {
  56.       export type schema =     {
  57.        "account_id": UUID_DEF.schema,
  58.       }
  59.       export const required = [
  60.        "account_id",
  61.       ];
  62.    }
  63.    export namespace response {
  64.       export type schema =     {
  65.        "account_id": UUID_DEF.schema,
  66.       }
  67.       export const required = [
  68.        "account_id",
  69.       ];
  70.    }
  71.   }
  72. }
  73. export namespace ACCOUNTS_ACCOUNT_AUTH_LOGIN_EP {
  74.   export const url = "/accounts/account/auth/login";
  75.   export namespace POST {
  76.    export namespace request {
  77.       export type schema =     {
  78.        "username": "string",
  79.        "password": "string",
  80.       }
  81.       export const required = [
  82.        "username",
  83.        "password",
  84.       ];
  85.    }
  86.    export namespace response {
  87.       export type schema =     {
  88.        "user": USER_DEF.schema,
  89.       }
  90.       export const required = [
  91.        "user",
  92.       ];
  93.    }
  94.   }
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement