project.py 1.49 KB
import time

from typing import List, Any, Optional, Union

from fastapi import APIRouter, Depends, Request, HTTPException, Body
from sqlalchemy.orm import Session

from presupuestov1 import model, schema, constant, schemas, models, search
from presupuestov1.routers._decorators import not_found


router = APIRouter(
    prefix='/programa_proyecto',
    tags=['programa_proyecto'],
)


###############################################################################
# GET
###############################################################################

@router.get('/{project_id}')
@not_found
def fetch_programa_proyecto(
    project_id: int,
    db: Session = Depends(model.get_db),
):
    return []


@router.get('/{project_id}/proyectos')
@not_found
def fetch_programa_proyecto_proyectos(
    project_id: int,
    db: Session = Depends(model.get_db),
	query: schema.QueryParams = Depends(),
):
    return []


@router.get('/{project_id}/objetos')
@not_found
def fetch_programa_proyecto_objetos(
    project_id: int,
    db: Session = Depends(model.get_db),
	query: schema.QueryParams = Depends(),
):
    return []


@router.get('/{project_id}/finfuns')
@not_found
def fetch_programa_proyecto_finfuns(
    project_id: int,
    db: Session = Depends(model.get_db),
	query: schema.QueryParams = Depends(),
):
    return []


@router.get('/{project_id}/actecos')
@not_found
def fetch_programa_proyecto_actecos(
    project_id: int,
    db: Session = Depends(model.get_db),
	query: schema.QueryParams = Depends(),
):
    return []