Skip to content

Commit 8b20465

Browse files
committed
Update function folder structure
1 parent b021b25 commit 8b20465

File tree

19 files changed

+41
-48
lines changed

19 files changed

+41
-48
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ The deployed services ensure a compliant encryption setup using the following fe
4747

4848
## Azure Function Code
4949

50-
TODO
50+
The Azure Function code is written in Python and leverages the new [Web Framework integration](https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-python?tabs=asgi%2Capplication-level&pivots=python-mode-decorators#web-frameworks) supported by the v2 Python programming model.
File renamed without changes.
File renamed without changes.

code/function/api/v1/api_v1.py renamed to code/function/fastapi/api/v1/api_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from fastapi import APIRouter
2-
from function.api.v1.endpoints import heartbeat, sample
2+
from fastapi.api.v1.endpoints import heartbeat, sample
33

44
api_v1_router = APIRouter()
55
api_v1_router.include_router(sample.router, prefix="/sample", tags=["sample"])

code/function/api/v1/endpoints/heartbeat.py renamed to code/function/fastapi/api/v1/endpoints/heartbeat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from typing import Any
22

33
from fastapi import APIRouter
4-
from function.models.heartbeat import HearbeatResult
5-
from function.utils import setup_logging
4+
from fastapi.models.heartbeat import HearbeatResult
5+
from fastapi.utils import setup_logging
66

77
logger = setup_logging(__name__)
88

code/function/api/v1/endpoints/sample.py renamed to code/function/fastapi/api/v1/endpoints/sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from typing import Any
22

33
from fastapi import APIRouter
4-
from function.models.sample import SampleRequest, SampleResponse
5-
from function.utils import setup_logging
4+
from fastapi.models.sample import SampleRequest, SampleResponse
5+
from fastapi.utils import setup_logging
66

77
logger = setup_logging(__name__)
88

File renamed without changes.

0 commit comments

Comments
 (0)