Skip to content

Add Badges API Annotations

Eugene Lim requested to merge elim-ext-badges-api-annotation into master

What does this MR do?

This adds the missing :name parameter to be included in autogenerated grape-swagger OpenAPI documentation. Note that :badge_id in the put ":id/badges/:badge_id" annotation is missing but causes test failures if explicitly defined (https://gitlab.com/gitlab-org/gitlab/-/jobs/3134988445); I'v found that the OpenAPI spec still generates with this parameter anyway so leaving as-is.

The OpenAPI V2 documentation will be used for dogfooding API fuzzing as per #372422 (closed) and the OpenAPI autogeneration !98681 (merged).

Related issues

#211512 #372422 (closed)

Edited by Eugene Lim

Merge request reports