Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 44,758
    • Issues 44,758
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,330
    • Merge requests 1,330
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #250342
Closed
Open
Issue created Sep 16, 2020 by Dmytro Zaporozhets (DZ)@dzaporozhets🌴Contributor3 of 3 checklist items completed3/3 checklist items

Change default content_type in API from text/plain to application/json

6 years ago I put content_type :txt, "text/plain" in lib/api/api.rb as a temporary fix to the bug 3c742dad.

This causes a side effect of API endpoints to support .txt format whenever we want it or not. Since we don't encourage nor document this behavior, its time to change it to application/json.

Example of the non desired behavior can be endpoint like this: https://gitlab.com/api/v4/users/1.txt

Timeline:

  • Introduce a feature flag !42229 (merged)
  • Improve the feature flag !46133 (merged)
  • Track feature flag progress #270067 (closed)
Edited Mar 22, 2021 by Dmytro Zaporozhets (DZ)
Assignee
Assign to
Time tracking