generated from StartDown/MicroservicesExample
37 lines
823 B
Python
37 lines
823 B
Python
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
|