This commit is contained in:
2025-01-11 20:59:10 -05:00
parent 85a0d6bc62
commit 3c57f13557
18 changed files with 464 additions and 365 deletions

View File

@@ -1,6 +1,5 @@
#!/usr/bin/env python3.12
from fastapi import FastAPI
from pydantic import BaseModel
@@ -31,7 +30,7 @@ class Counters(FastAPI):
self.endpoints = {
"counters/get": self.get_counter_handler,
"counters/increment": self.increment_counter_handler
# "counters/increment": self.increment_counter_handler
#tbd
}
@@ -55,14 +54,12 @@ class Counters(FastAPI):
}
async def increment_counter_handler(self, data: ValidCounterIncrementRequest):
"""
/counters/increment/
Increment counter value (requires PUT KEY)
"""
return {
}
# async def increment_counter_handler(self, data: ValidCounterIncrementRequest):
# """
# /counters/increment/
# Increment counter value (requires PUT KEY)
# """
# return {
# }