generated from StartDown/MicroservicesExample
restored
This commit is contained in:
0
app/api/v1/B2B/__init__.py
Normal file
0
app/api/v1/B2B/__init__.py
Normal file
36
app/api/v1/B2B/admin.py
Normal file
36
app/api/v1/B2B/admin.py
Normal file
@@ -0,0 +1,36 @@
|
||||
from fastapi import APIRouter, Query, Header
|
||||
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/b2b",
|
||||
tags=["b2b"]
|
||||
)
|
||||
|
||||
|
||||
@router.post("/products/{id}")
|
||||
def create_product(
|
||||
id: int,
|
||||
token: str = Header(..., description="Authorization token", alias="Authorization"),
|
||||
) -> dict:
|
||||
pass
|
||||
|
||||
@router.put("/products/{id}")
|
||||
def update_product(
|
||||
id: int,
|
||||
token: str = Header(..., description="Authorization token", alias="Authorization"),
|
||||
) -> dict:
|
||||
pass
|
||||
|
||||
@router.delete("/products/{id}")
|
||||
def delete_product(
|
||||
id: int,
|
||||
token: str = Header(..., description="Authorization token", alias="Authorization"),
|
||||
) -> dict:
|
||||
pass
|
||||
|
||||
@router.post("/products/{id}/related")
|
||||
def create_related(
|
||||
id: int,
|
||||
token: str = Header(..., description="Authorization token", alias="Authorization"),
|
||||
) -> dict:
|
||||
pass
|
||||
Reference in New Issue
Block a user