Actions
action #80492
closed[easy] API help document says "Deletes …" for routes like "test_suites/:id" PUT and POST and looks inconsistent
Description
Observation¶
On https://openqa.opensuse.org/not_found one sees
+/test_suites/:id PUT test_suitesid Deletes a table …
Problems¶
- It says "delete" for the PUT method, also POST
- there is no "apiv1_…" in the route name
- Looks like the same text is put on all methods here
- Maybe same problem appears for other routes
Suggestions¶
- Find the route definitions in https://github.com/os-autoinst/openQA/blob/master/lib/OpenQA/WebAPI.pm#L389
- Crosscheck and correct the "name" parameter
- Correct the comment that is defined in lib/OpenQA/WebAPI/Controller/API/V1/Table.pm and either incorrectly read out or needs to be updated. likely the method "_verify_table_usage" has just in the middle between the correct comment for "update" and the method definition it self
Updated by okurz almost 4 years ago
- Subject changed from API help document says "Deletes …" for routes like "test_suites/:id" PUT and POST and looks inconsistent to [easy] API help document says "Deletes …" for routes like "test_suites/:id" PUT and POST and looks inconsistent
- Difficulty set to easy
Updated by mkittler almost 4 years ago
- Status changed from Workable to In Progress
Updated by okurz almost 4 years ago
- Due date set to 2020-12-12
Setting due date based on mean cycle time of SUSE QE Tools
Updated by okurz almost 4 years ago
I see that +/test_suites/:id PUT "apiv1_put_test_suite"
is on https://openqa.opensuse.org/foo_bar but also +/test_suites POST test_suites
. same for "machines", Shouldn't this be "apiv1_post_test_suites" and "apiv1_post_machines"?
Updated by mkittler almost 4 years ago
- Status changed from In Progress to Feedback
PR has been merged. I see apiv1_post_test_suite
and apiv1_post_machine
on the 404 page. Not sure what you mean.
Updated by mkittler almost 4 years ago
- Status changed from Feedback to Resolved
The problem this ticket is about is solved. I created another PR for improving the 404 page a little bit more: https://github.com/os-autoinst/openQA/pull/3617
Actions