@@ -20,7 +20,8 @@ pub struct TrackerIdPath {
2020#[ utoipa:: path(
2121 tags = [ "web_scraping" ] ,
2222 responses(
23- ( status = 200 , description = "List of API trackers." , body = [ ApiTracker ] )
23+ ( status = 200 , description = "List of API trackers." , body = [ ApiTracker ] ) ,
24+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
2425 )
2526) ]
2627#[ get( "/api/web_scraping/api_trackers" ) ]
@@ -38,7 +39,8 @@ pub async fn api_trackers_list(
3839 request_body = ApiTrackerCreateParams ,
3940 responses(
4041 ( status = 201 , description = "API tracker was successfully created." , body = ApiTracker ) ,
41- ( status = BAD_REQUEST , description = "Invalid API tracker parameters." )
42+ ( status = BAD_REQUEST , description = "Invalid API tracker parameters." ) ,
43+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
4244 )
4345) ]
4446#[ post( "/api/web_scraping/api_trackers" ) ]
@@ -62,7 +64,8 @@ pub async fn api_trackers_create(
6264 request_body = ApiTrackerUpdateParams ,
6365 responses(
6466 ( status = 204 , description = "API tracker was successfully updated." ) ,
65- ( status = NOT_FOUND , description = "API tracker not found." )
67+ ( status = NOT_FOUND , description = "API tracker not found." ) ,
68+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
6669 )
6770) ]
6871#[ put( "/api/web_scraping/api_trackers/{tracker_id}" ) ]
@@ -86,7 +89,8 @@ pub async fn api_trackers_update(
8689 params( TrackerIdPath ) ,
8790 responses(
8891 ( status = 204 , description = "API tracker was successfully deleted." ) ,
89- ( status = NOT_FOUND , description = "API tracker not found." )
92+ ( status = NOT_FOUND , description = "API tracker not found." ) ,
93+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
9094 )
9195) ]
9296#[ delete( "/api/web_scraping/api_trackers/{tracker_id}" ) ]
@@ -110,7 +114,8 @@ pub async fn api_trackers_delete(
110114 request_body = ApiTrackerGetHistoryParams ,
111115 responses(
112116 ( status = 200 , description = "List of API tracker revisions." ) ,
113- ( status = NOT_FOUND , description = "API tracker not found." )
117+ ( status = NOT_FOUND , description = "API tracker not found." ) ,
118+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
114119 )
115120) ]
116121#[ post( "/api/web_scraping/api_trackers/{tracker_id}/_history" ) ]
@@ -134,7 +139,8 @@ pub async fn api_trackers_get_history(
134139 params( TrackerIdPath ) ,
135140 responses(
136141 ( status = 204 , description = "History was successfully cleared." ) ,
137- ( status = NOT_FOUND , description = "API tracker not found." )
142+ ( status = NOT_FOUND , description = "API tracker not found." ) ,
143+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
138144 )
139145) ]
140146#[ post( "/api/web_scraping/api_trackers/{tracker_id}/_clear" ) ]
@@ -157,7 +163,8 @@ pub async fn api_trackers_clear_history(
157163 params( TrackerIdPath ) ,
158164 responses(
159165 ( status = 200 , description = "List of tracker execution logs." ) ,
160- ( status = NOT_FOUND , description = "API tracker not found." )
166+ ( status = NOT_FOUND , description = "API tracker not found." ) ,
167+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
161168 )
162169) ]
163170#[ get( "/api/web_scraping/api_trackers/{tracker_id}/_logs" ) ]
@@ -180,7 +187,8 @@ pub async fn api_trackers_get_logs(
180187 params( TrackerIdPath ) ,
181188 responses(
182189 ( status = 204 , description = "Logs were successfully cleared." ) ,
183- ( status = NOT_FOUND , description = "API tracker not found." )
190+ ( status = NOT_FOUND , description = "API tracker not found." ) ,
191+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
184192 )
185193) ]
186194#[ post( "/api/web_scraping/api_trackers/{tracker_id}/_clear_logs" ) ]
@@ -201,7 +209,8 @@ pub async fn api_trackers_clear_logs(
201209#[ utoipa:: path(
202210 tags = [ "web_scraping" ] ,
203211 responses(
204- ( status = 200 , description = "Logs summary keyed by tracker ID." )
212+ ( status = 200 , description = "Logs summary keyed by tracker ID." ) ,
213+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
205214 )
206215) ]
207216#[ get( "/api/web_scraping/api_trackers/_logs_summary" ) ]
@@ -223,7 +232,8 @@ pub async fn api_trackers_get_logs_summary(
223232 request_body = ApiTrackerTestParams ,
224233 responses(
225234 ( status = 200 , description = "Test request result." , body = ApiTrackerTestResult ) ,
226- ( status = BAD_REQUEST , description = "Invalid test parameters." )
235+ ( status = BAD_REQUEST , description = "Invalid test parameters." ) ,
236+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
227237 )
228238) ]
229239#[ post( "/api/web_scraping/api_trackers/_test" ) ]
@@ -246,7 +256,8 @@ pub async fn api_trackers_test(
246256 request_body = ApiTrackerDebugParams ,
247257 responses(
248258 ( status = 200 , description = "Debug result." ) ,
249- ( status = BAD_REQUEST , description = "Invalid debug parameters." )
259+ ( status = BAD_REQUEST , description = "Invalid debug parameters." ) ,
260+ ( status = UNAUTHORIZED , description = "Missing or invalid authentication credentials." )
250261 )
251262) ]
252263#[ post( "/api/web_scraping/api_trackers/_debug" ) ]
0 commit comments