liberty-framework 6.0.59__py3-none-any.whl → 6.0.60__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,4 +78,7 @@ class ApiController:
78
78
  return await self.apiRest.ai_welcome(req)
79
79
 
80
80
  async def rest(self, req: Request):
81
- return await self.apiRest.rest(req)
81
+ return await self.apiRest.rest(req)
82
+
83
+ async def version(self, req: Request):
84
+ return await self.apiRest.get_version(req)
app/models/apidb.py CHANGED
@@ -144,4 +144,13 @@ ENCRYPT_ERROR_MESSAGE = "Failed to encrypt data: (sqlalchemy.dialects.postgresql
144
144
  ENCRYPT_RESPONSE_DESCRIPTION = "Encryption successful"
145
145
  ENCRYPT_RESPONSE_EXAMPLE = {
146
146
  "encrypted": "ENC:wNMyALbXf....."
147
+ }
148
+
149
+ # Define the full response schema
150
+ class VersionResponse(BaseModel):
151
+ version: str
152
+ VERSION_ERROR_MESSAGE = "Failed to get the framework version"
153
+ VERSION_RESPONSE_DESCRIPTION = "Version retrieved successfully"
154
+ VERSION_RESPONSE_EXAMPLE = {
155
+ "version": "6.0.59"
147
156
  }