Stop attaching type into API responses
This is a prerequisite for https://gitlab.com/gitlab-org/gitlab-triage/-/issues/234
We are embedding type
value into the API resource and that's conflicting with the API response, and that's why we cannot expose type
value from the API response.
In order to implement https://gitlab.com/gitlab-org/gitlab-triage/-/issues/234, we need to stop using type
internally first. This can be done by introducing a new argument called resource_type
.
https://gitlab.com/gitlab-org/gitlab-triage/-/merge_requests/219 is an example implementation for resource summary
. We can extend this to other resources.
Edited by Lin Jen-Shin