feat: Update endpoint boom
This commit is contained in:
parent
58c7699b40
commit
26e6164c73
@ -0,0 +1,30 @@
|
||||
from fastapi import APIRouter, Depends, HTTPException
|
||||
from core.database import fake_users_db
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.get("/api/v1/endpoint")
|
||||
async def get_dummy_data():
|
||||
"""Get dummy data endpoint"""
|
||||
dummy_data = {
|
||||
"users": [
|
||||
{"id": "1", "name": "John Doe", "role": "admin"},
|
||||
{"id": "2", "name": "Jane Smith", "role": "user"},
|
||||
{"id": "3", "name": "Bob Johnson", "role": "user"}
|
||||
],
|
||||
"settings": {
|
||||
"theme": "dark",
|
||||
"notifications": True,
|
||||
"language": "en"
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
"message": "Dummy data retrieved successfully",
|
||||
"data": dummy_data,
|
||||
"metadata": {
|
||||
"version": "1.0",
|
||||
"timestamp": "2024-01-01T00:00:00Z",
|
||||
"source": "demo_database"
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user