File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def _raise_if_bad_election_data(
8888 description = "Returns a list of all election & their status" ,
8989 response_model = list [ElectionResponse ],
9090 responses = {
91- 404 : { "description" : "No election found" }
91+ 404 : { "description" : "No election found" , "model" : DetailModel }
9292 },
9393 operation_id = "get_all_elections"
9494)
Original file line number Diff line number Diff line change 99from officers .tables import OfficerInfo , OfficerTerm
1010from officers .types import InitialOfficerInfo , OfficerInfoUpload , OfficerTermUpload
1111from permission .types import OfficerPrivateInfo , WebsiteAdmin
12+ from utils .shared_models import DetailModel
1213from utils .urls import logged_in_or_raise
1314
1415router = APIRouter (
@@ -62,6 +63,9 @@ async def current_officers(
6263 "/all" ,
6364 description = "Information for all execs from all exec terms" ,
6465 response_model = list [PrivateOfficerResponse ] | list [PublicOfficerResponse ],
66+ responses = {
67+ 401 : { "description" : "not authorized to view private info" , "model" : DetailModel }
68+ },
6569 operation_id = "get_all_officers"
6670)
6771async def all_officers (
You can’t perform that action at this time.
0 commit comments