DEV: Fix some openapi spec issues (PR #14037)

  • Remove duplicate paths
  • Remove query param listed in the path

GitHub