File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131from mavedb .models .score_calibration import ScoreCalibration
3232from mavedb .models .score_calibration_functional_classification import ScoreCalibrationFunctionalClassification
3333from mavedb .models .score_set import ScoreSet
34+ from mavedb .routers .shared import ACCESS_CONTROL_ERROR_RESPONSES , PUBLIC_ERROR_RESPONSES
3435from mavedb .view_models import score_calibration
3536
3637logger = logging .getLogger (__name__ )
3738
3839router = APIRouter (
3940 prefix = "/api/v1/score-calibrations" ,
4041 tags = ["Score Calibrations" ],
41- responses = {404 : { "description" : "Not found" } },
42+ responses = {** PUBLIC_ERROR_RESPONSES },
4243 route_class = LoggedRoute ,
4344)
4445
5859 "/me" ,
5960 status_code = 200 ,
6061 response_model = list [score_calibration .ScoreCalibrationWithScoreSetUrn ],
61- responses = {401 : {}, 403 : {} },
62+ responses = {** ACCESS_CONTROL_ERROR_RESPONSES },
6263 summary = "List my calibrations" ,
6364)
6465def list_my_calibrations (
You can’t perform that action at this time.
0 commit comments