Improperly formatted response from create file API
Summary
The JSON response from /projects/:id/repository/files/:filepath is improperly formatted (see snippet below).
Steps to reproduce
Send the following request:
curl --request POST --header "PRIVATE-TOKEN:<token>" "http://<hostname>/api/v4/projects/<projectId>/repository/files/Readme.txt?file_path=Readme.txt&commit_message=Project+creation&branch=master&content=Default+readme+file+created+to+initialize+project"
What is the current bug behavior?
Response:
{:file_path=>"Readme.txt", :branch=>"master"}
What is the expected correct behavior?
Response:
{"file_name": "Readme.txt", "branch": "master"}
As per the documentation