Skip to content
Snippets Groups Projects
spec.json 56.4 KiB
Newer Older
          },
          "amount": {
            "type": "number"
          }
        }
      },
      "ExceptionResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "message": {
            "type": "string"
heikkkk's avatar
heikkkk committed
          }
        }
      },
Henrik's avatar
Henrik committed
      "BudgetRequestDTO": {
heikkkk's avatar
heikkkk committed
        "type": "object",
        "properties": {
          "budgetName": {
            "type": "string"
          },
          "budgetAmount": {
            "type": "number"
          },
          "expenseAmount": {
            "type": "number"
          }
        }
      },
      "ExpenseRequestDTO": {
        "type": "object",
        "properties": {
          "expenseId": {
            "type": "integer",
            "format": "int64"
          },
          "description": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          }
        }
      },
      "ConfigurationDTO": {
        "type": "object",
        "properties": {
          "commitment": {
            "type": "string"
          },
          "experience": {
            "type": "string"
          },
          "challengeTypes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SignUpRequest": {
        "required": [
          "configuration"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          },
          "configuration": {
            "$ref": "#/components/schemas/ConfigurationDTO"
          }
        }
      },
      "AuthenticationResponse": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "userId": {
            "type": "integer",
            "format": "int64"
          },
          "profileImage": {
            "type": "integer",
            "format": "int64"
          },
heikkkk's avatar
heikkkk committed
          "role": {
            "type": "string"
          },
          "subscriptionLevel": {
            "type": "string"
          },
heikkkk's avatar
heikkkk committed
          "token": {
            "type": "string"
          }
        }
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string"
          },
          "password": {
            "type": "string"
          }
        }
      },
      "UserUpdateDTO": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "profileImage": {
            "type": "integer",
            "format": "int64"
heikkkk's avatar
heikkkk committed
          },
          "configuration": {
            "$ref": "#/components/schemas/ConfigurationDTO"
          }
        }
      },
      "BankAccountDTO": {
        "type": "object",
        "properties": {
          "bban": {
            "type": "integer",
            "format": "int64"
          },
          "bankAccountType": {
            "type": "string"
          }
        }
      },
      "PasswordUpdateDTO": {
        "type": "object",
        "properties": {
          "oldPassword": {
            "type": "string"
          },
          "newPassword": {
            "type": "string"
          }
        }
      },
heikkkk's avatar
heikkkk committed
      "ProfileDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "profileImage": {
            "type": "integer",
            "format": "int64"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FeedbackResponseDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
heikkkk's avatar
heikkkk committed
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "LeaderboardDTO": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "filter": {
            "type": "string"
          },
          "entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LeaderboardEntryDTO"
            }
          }
        }
      },
      "LeaderboardEntryDTO": {
        "type": "object",
        "properties": {
          "user": {
            "$ref": "#/components/schemas/UserDTO"
          },
          "score": {
            "type": "integer",
            "format": "int32"
          },
          "rank": {
            "type": "integer",
            "format": "int64"
          }
        }
      },
      "ItemDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "itemName": {
            "type": "string"
          },
          "price": {
            "type": "integer",
            "format": "int32"
          },
          "imageId": {
            "type": "integer",
            "format": "int64"
          },
          "alreadyBought": {
            "type": "boolean"
          }
        }
      },
      "InventoryDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "itemName": {
            "type": "string"
          },
          "imageId": {
            "type": "integer",
            "format": "int64"
          },
          "boughtAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
Henrik's avatar
Henrik committed
      "BudgetResponseDTO": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "budgetName": {
            "type": "string"
          },
          "budgetAmount": {
            "type": "number"
          },
          "expenseAmount": {
            "type": "number"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
heikkkk's avatar
heikkkk committed
      "ExpenseResponseDTO": {
        "type": "object",
        "properties": {
          "expenseId": {
            "type": "integer",
            "format": "int64"
          },
          "budgetId": {
            "type": "integer",
            "format": "int64"
          },
          "description": {
            "type": "string"
          },
          "amount": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "Bearer Authentication": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  }
}