abhisheksan commited on
Commit
21f2df3
·
1 Parent(s): d9a9114

Bump version to 1.0.0 and add HEAD health

Browse files

Add HEAD /health and bump version to 1.0.0

Files changed (2) hide show
  1. app/__init__.py +1 -1
  2. app/main.py +4 -4
app/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
  """Multi-utility FastAPI Server."""
2
 
3
- __version__ = "0.1.0"
 
1
  """Multi-utility FastAPI Server."""
2
 
3
+ __version__ = "1.0.0"
app/main.py CHANGED
@@ -34,7 +34,7 @@ async def lifespan(app: FastAPI):
34
  app = FastAPI(
35
  title="Multi-Utility Server",
36
  description="Centralized FastAPI server providing reusable APIs for different projects",
37
- version="0.1.0",
38
  docs_url="/docs",
39
  redoc_url="/redoc",
40
  lifespan=lifespan
@@ -91,14 +91,14 @@ async def log_requests(request: Request, call_next):
91
 
92
  return response
93
 
94
-
95
  @app.get("/health")
96
  async def health_check():
97
  """Health check endpoint."""
98
  return {
99
  "status": "healthy",
100
  "service": "multi-utility-server",
101
- "version": "0.1.0"
102
  }
103
 
104
 
@@ -107,7 +107,7 @@ async def root():
107
  """Root endpoint with API information."""
108
  return {
109
  "message": "Multi-Utility FastAPI Server",
110
- "version": "0.1.0",
111
  "docs": "/docs",
112
  "health": "/health",
113
  "apis": {
 
34
  app = FastAPI(
35
  title="Multi-Utility Server",
36
  description="Centralized FastAPI server providing reusable APIs for different projects",
37
+ version="1.0.0",
38
  docs_url="/docs",
39
  redoc_url="/redoc",
40
  lifespan=lifespan
 
91
 
92
  return response
93
 
94
+ @app.head("/health")
95
  @app.get("/health")
96
  async def health_check():
97
  """Health check endpoint."""
98
  return {
99
  "status": "healthy",
100
  "service": "multi-utility-server",
101
+ "version": "1.0.0"
102
  }
103
 
104
 
 
107
  """Root endpoint with API information."""
108
  return {
109
  "message": "Multi-Utility FastAPI Server",
110
+ "version": "1.0.0",
111
  "docs": "/docs",
112
  "health": "/health",
113
  "apis": {