Add deprecation metadata for our REST API to its OpenAPI data

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

About

Our REST API currently lacks the ability for us to describe deprecations through metadata, like our GraphQL API does.

The OpenAPI spec allows deprecated booleans.

The metadata is useful as a means for clients to be informed of deprecations.

We can also use this data internally to:

Proposal

We should:

  • Use the OpenAPI deprecated property in our REST API.
  • Document/form a process for developers to use this property.

Ideally, we would also add the same deprecation metadata as GraphQL, which includes:

  • Deprecation reason (a human-readable description of the deprecation)
  • Milestone that the item was deprecated.
Edited by 🤖 GitLab Bot 🤖