1248 lines
28 KiB
JSON
1248 lines
28 KiB
JSON
{
|
|
"x-generator": "NSwag v14.0.3.0 (NJsonSchema v11.0.0.0 (Newtonsoft.Json v13.0.0.0))",
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "Hutopy API",
|
|
"version": "1.0.0"
|
|
},
|
|
"paths": {
|
|
"/api/GetMyUser": {
|
|
"get": {
|
|
"tags": [
|
|
"GetMyUser"
|
|
],
|
|
"operationId": "GetCurrentUser",
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/UserDto"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"JWT": []
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/api/JoinUs": {
|
|
"get": {
|
|
"tags": [
|
|
"JoinUs"
|
|
],
|
|
"operationId": "GetFutureCreators",
|
|
"parameters": [
|
|
{
|
|
"name": "PageNumber",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"x-position": 1
|
|
},
|
|
{
|
|
"name": "PageSize",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"x-position": 2
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/PaginatedListOfFutureCreatorListDto"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"JoinUs"
|
|
],
|
|
"operationId": "CreateFutureCreator",
|
|
"requestBody": {
|
|
"x-name": "command",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateFutureCreatorCommand"
|
|
}
|
|
}
|
|
},
|
|
"required": true,
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "string",
|
|
"format": "guid"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Stripe/confirmTransaction": {
|
|
"post": {
|
|
"tags": [
|
|
"Stripe"
|
|
],
|
|
"operationId": "ConfirmTransaction",
|
|
"requestBody": {
|
|
"x-name": "command",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ConfirmStripeTransactionCommand"
|
|
}
|
|
}
|
|
},
|
|
"required": true,
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Stripe/getMyLastReceipt": {
|
|
"get": {
|
|
"tags": [
|
|
"Stripe"
|
|
],
|
|
"operationId": "GetMyLastReceipt",
|
|
"parameters": [
|
|
{
|
|
"name": "Email",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"x-position": 1
|
|
},
|
|
{
|
|
"name": "CreatorId",
|
|
"in": "query",
|
|
"required": true,
|
|
"schema": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"x-position": 2
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MyLastReceiptDto"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Stripe": {
|
|
"post": {
|
|
"tags": [
|
|
"Stripe"
|
|
],
|
|
"operationId": "CreateSessionCheckout",
|
|
"requestBody": {
|
|
"x-name": "command",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateSessionCheckoutCommand"
|
|
}
|
|
}
|
|
},
|
|
"required": true,
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "CreateUser",
|
|
"requestBody": {
|
|
"x-name": "command",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/CreateUserCommand"
|
|
}
|
|
}
|
|
},
|
|
"required": true,
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "string",
|
|
"format": "guid"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"get": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "GetMinimalUser",
|
|
"parameters": [
|
|
{
|
|
"name": "UserId",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"x-position": 1
|
|
},
|
|
{
|
|
"name": "UserName",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"x-position": 2
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/MinimalUserDto"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/register": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersRegister",
|
|
"requestBody": {
|
|
"x-name": "registration",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RegisterRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
},
|
|
"400": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/login": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersLogin",
|
|
"parameters": [
|
|
{
|
|
"name": "useCookies",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"nullable": true
|
|
},
|
|
"x-position": 2
|
|
},
|
|
{
|
|
"name": "useSessionCookies",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "boolean",
|
|
"nullable": true
|
|
},
|
|
"x-position": 3
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"x-name": "login",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/LoginRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/AccessTokenResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/refresh": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersRefresh",
|
|
"requestBody": {
|
|
"x-name": "refreshRequest",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/RefreshRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/AccessTokenResponse"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/confirmEmail": {
|
|
"get": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "GetApiUsersConfirmEmail",
|
|
"parameters": [
|
|
{
|
|
"name": "userId",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"x-position": 1
|
|
},
|
|
{
|
|
"name": "code",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"x-position": 2
|
|
},
|
|
{
|
|
"name": "changedEmail",
|
|
"in": "query",
|
|
"schema": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"x-position": 3
|
|
}
|
|
],
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/resendConfirmationEmail": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersResendConfirmationEmail",
|
|
"requestBody": {
|
|
"x-name": "resendRequest",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ResendConfirmationEmailRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/forgotPassword": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersForgotPassword",
|
|
"requestBody": {
|
|
"x-name": "resetRequest",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ForgotPasswordRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
},
|
|
"400": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/resetPassword": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersResetPassword",
|
|
"requestBody": {
|
|
"x-name": "resetRequest",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/ResetPasswordRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": ""
|
|
},
|
|
"400": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/api/Users/manage/2fa": {
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersManage2fa",
|
|
"requestBody": {
|
|
"x-name": "tfaRequest",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/TwoFactorRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/TwoFactorResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"404": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"JWT": []
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/api/Users/manage/info": {
|
|
"get": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "GetApiUsersManageInfo",
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/InfoResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"404": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"JWT": []
|
|
}
|
|
]
|
|
},
|
|
"post": {
|
|
"tags": [
|
|
"Users"
|
|
],
|
|
"operationId": "PostApiUsersManageInfo",
|
|
"requestBody": {
|
|
"x-name": "infoRequest",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/InfoRequest"
|
|
}
|
|
}
|
|
},
|
|
"x-position": 1
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/InfoResponse"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"400": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"$ref": "#/components/schemas/HttpValidationProblemDetails"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"404": {
|
|
"description": ""
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"JWT": []
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"/api/WeatherForecasts": {
|
|
"get": {
|
|
"tags": [
|
|
"WeatherForecasts"
|
|
],
|
|
"operationId": "GetWeatherForecasts",
|
|
"responses": {
|
|
"200": {
|
|
"description": "",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/WeatherForecast"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"JWT": []
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"UserDto": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "guid"
|
|
},
|
|
"firstName": {
|
|
"type": "string"
|
|
},
|
|
"lastName": {
|
|
"type": "string"
|
|
},
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"userTransactions": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/UserTransactionDto"
|
|
}
|
|
},
|
|
"userRoles": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"totalBalance": {
|
|
"type": "number",
|
|
"format": "decimal"
|
|
}
|
|
}
|
|
},
|
|
"UserTransactionDto": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"amount": {
|
|
"type": "number",
|
|
"format": "decimal"
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
},
|
|
"tipMessage": {
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"isConfirmed": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"PaginatedListOfFutureCreatorListDto": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"items": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/FutureCreatorListDto"
|
|
}
|
|
},
|
|
"pageNumber": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"totalPages": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"totalCount": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"hasPreviousPage": {
|
|
"type": "boolean"
|
|
},
|
|
"hasNextPage": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"FutureCreatorListDto": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "guid"
|
|
},
|
|
"firstName": {
|
|
"type": "string"
|
|
},
|
|
"lastName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"CreateFutureCreatorCommand": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"firstName": {
|
|
"type": "string"
|
|
},
|
|
"lastName": {
|
|
"type": "string"
|
|
},
|
|
"emailAddress": {
|
|
"type": "string"
|
|
},
|
|
"phoneNumber": {
|
|
"type": "string"
|
|
},
|
|
"socialNetworkAccount": {
|
|
"type": "string"
|
|
},
|
|
"reasonToJoin": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"ConfirmStripeTransactionCommand": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"object": {
|
|
"type": "string"
|
|
},
|
|
"created": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"data": {
|
|
"$ref": "#/components/schemas/Data"
|
|
},
|
|
"request": {
|
|
"$ref": "#/components/schemas/Request"
|
|
}
|
|
}
|
|
},
|
|
"Data": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"object": {
|
|
"$ref": "#/components/schemas/Object"
|
|
}
|
|
}
|
|
},
|
|
"Object": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"amount": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"billing_details": {
|
|
"$ref": "#/components/schemas/BillingDetails"
|
|
},
|
|
"calculated_statement_descriptor": {
|
|
"type": "string"
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
},
|
|
"paid": {
|
|
"type": "boolean"
|
|
},
|
|
"payment_intent": {
|
|
"type": "string"
|
|
},
|
|
"payment_method": {
|
|
"type": "string"
|
|
},
|
|
"receipt_url": {
|
|
"type": "string"
|
|
},
|
|
"status": {
|
|
"type": "string"
|
|
},
|
|
"failure_message": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"BillingDetails": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"Request": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"MyLastReceiptDto": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"receiptUrl": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"CreateSessionCheckoutCommand": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"creatorId": {
|
|
"type": "string"
|
|
},
|
|
"amount": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"currency": {
|
|
"type": "string"
|
|
},
|
|
"tipMessage": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"CreateUserCommand": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"firstName": {
|
|
"type": "string"
|
|
},
|
|
"lastName": {
|
|
"type": "string"
|
|
},
|
|
"emailAddress": {
|
|
"type": "string"
|
|
},
|
|
"userName": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"MinimalUserDto": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"firstName": {
|
|
"type": "string"
|
|
},
|
|
"lastName": {
|
|
"type": "string"
|
|
},
|
|
"userName": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"HttpValidationProblemDetails": {
|
|
"allOf": [
|
|
{
|
|
"$ref": "#/components/schemas/ProblemDetails"
|
|
},
|
|
{
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"nullable": true
|
|
},
|
|
"properties": {
|
|
"errors": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"ProblemDetails": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"nullable": true
|
|
},
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"title": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"status": {
|
|
"type": "integer",
|
|
"format": "int32",
|
|
"nullable": true
|
|
},
|
|
"detail": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"instance": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
"RegisterRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"AccessTokenResponse": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"tokenType": {
|
|
"type": "string"
|
|
},
|
|
"accessToken": {
|
|
"type": "string"
|
|
},
|
|
"expiresIn": {
|
|
"type": "integer",
|
|
"format": "int64"
|
|
},
|
|
"refreshToken": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"LoginRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"password": {
|
|
"type": "string"
|
|
},
|
|
"twoFactorCode": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"twoFactorRecoveryCode": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
"RefreshRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"refreshToken": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"ResendConfirmationEmailRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"ForgotPasswordRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"ResetPasswordRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"resetCode": {
|
|
"type": "string"
|
|
},
|
|
"newPassword": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"TwoFactorResponse": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"sharedKey": {
|
|
"type": "string"
|
|
},
|
|
"recoveryCodesLeft": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"recoveryCodes": {
|
|
"type": "array",
|
|
"nullable": true,
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"isTwoFactorEnabled": {
|
|
"type": "boolean"
|
|
},
|
|
"isMachineRemembered": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"TwoFactorRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"enable": {
|
|
"type": "boolean",
|
|
"nullable": true
|
|
},
|
|
"twoFactorCode": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"resetSharedKey": {
|
|
"type": "boolean"
|
|
},
|
|
"resetRecoveryCodes": {
|
|
"type": "boolean"
|
|
},
|
|
"forgetMachine": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"InfoResponse": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"isEmailConfirmed": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"InfoRequest": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"newEmail": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"newPassword": {
|
|
"type": "string",
|
|
"nullable": true
|
|
},
|
|
"oldPassword": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
}
|
|
},
|
|
"WeatherForecast": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"date": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"temperatureC": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"temperatureF": {
|
|
"type": "integer",
|
|
"format": "int32"
|
|
},
|
|
"summary": {
|
|
"type": "string",
|
|
"nullable": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"securitySchemes": {
|
|
"JWT": {
|
|
"type": "apiKey",
|
|
"description": "Type into the textbox: Bearer {your JWT token}.",
|
|
"name": "Authorization",
|
|
"in": "header"
|
|
}
|
|
}
|
|
},
|
|
"security": [
|
|
{
|
|
"JWT": []
|
|
}
|
|
]
|
|
} |