@@ -50,6 +50,109 @@ const docTemplate = `{
5050 }
5151 }
5252 },
53+ "/astra/{date}/{building}": {
54+ "get": {
55+ "description": "\"Returns AstraEvent based on the input date and building name\"",
56+ "produces": [
57+ "application/json"
58+ ],
59+ "tags": [
60+ "Events"
61+ ],
62+ "operationId": "AstraEventsByBuilding",
63+ "parameters": [
64+ {
65+ "type": "string",
66+ "description": "date (ISO format) to retrieve astra events",
67+ "name": "date",
68+ "in": "path",
69+ "required": true
70+ },
71+ {
72+ "type": "string",
73+ "description": "building abbreviation of event locations",
74+ "name": "building",
75+ "in": "path",
76+ "required": true
77+ }
78+ ],
79+ "responses": {
80+ "200": {
81+ "description": "All sections with meetings on the specified date in the specified building",
82+ "schema": {
83+ "$ref": "#/definitions/schema.APIResponse-schema_SingleBuildingEvents-schema_AstraEvent"
84+ }
85+ },
86+ "404": {
87+ "description": "A string describing the error",
88+ "schema": {
89+ "$ref": "#/definitions/schema.APIResponse-string"
90+ }
91+ },
92+ "500": {
93+ "description": "A string describing the error",
94+ "schema": {
95+ "$ref": "#/definitions/schema.APIResponse-string"
96+ }
97+ }
98+ }
99+ }
100+ },
101+ "/astra/{date}/{building}/{room}": {
102+ "get": {
103+ "description": "\"Returns AstraEvent based on the input date building name and room number\"",
104+ "produces": [
105+ "application/json"
106+ ],
107+ "tags": [
108+ "Events"
109+ ],
110+ "operationId": "AstraEventsByBuildingandRoom",
111+ "parameters": [
112+ {
113+ "type": "string",
114+ "description": "date (ISO format) to retrieve astra events",
115+ "name": "date",
116+ "in": "path",
117+ "required": true
118+ },
119+ {
120+ "type": "string",
121+ "description": "building abbreviation of event locations",
122+ "name": "building",
123+ "in": "path",
124+ "required": true
125+ },
126+ {
127+ "type": "string",
128+ "description": "room number for event",
129+ "name": "room",
130+ "in": "path",
131+ "required": true
132+ }
133+ ],
134+ "responses": {
135+ "200": {
136+ "description": "All sections with meetings on the specified date in the specified building",
137+ "schema": {
138+ "$ref": "#/definitions/schema.APIResponse-schema_SingleBuildingEvents-schema_AstraEvent"
139+ }
140+ },
141+ "404": {
142+ "description": "A string describing the error",
143+ "schema": {
144+ "$ref": "#/definitions/schema.APIResponse-string"
145+ }
146+ },
147+ "500": {
148+ "description": "A string describing the error",
149+ "schema": {
150+ "$ref": "#/definitions/schema.APIResponse-string"
151+ }
152+ }
153+ }
154+ }
155+ },
53156 "/autocomplete/dag": {
54157 "get": {
55158 "description": "\"Returns an aggregation of courses for use in generating autocomplete DAGs\"",
@@ -3069,6 +3172,20 @@ const docTemplate = `{
30693172 }
30703173 }
30713174 },
3175+ "schema.APIResponse-schema_SingleBuildingEvents-schema_AstraEvent": {
3176+ "type": "object",
3177+ "properties": {
3178+ "data": {
3179+ "$ref": "#/definitions/schema.SingleBuildingEvents-schema_AstraEvent"
3180+ },
3181+ "message": {
3182+ "type": "string"
3183+ },
3184+ "status": {
3185+ "type": "integer"
3186+ }
3187+ }
3188+ },
30723189 "schema.APIResponse-schema_SingleBuildingEvents-schema_SectionWithTime": {
30733190 "type": "object",
30743191 "properties": {
0 commit comments