gitbucket/gitbucket

Creating pull request via web API returns escaped response

Open

#2,306 建立於 2019年4月30日

在 GitHub 查看
 (6 留言) (0 反應) (0 負責人)Scala (9,371 star) (1,262 fork)batch import
bughelp wanted

描述

Issue

Impacted version: 4.31.2

Deployment mode: standalone app

Problem description: When you create a pull request via web api, you'll get following response with double quotes escaped.

POST http://localhost:8080/api/v3/repos/root/test1/pulls HTTP/1.1
Content-Type: application/json

{
  "title": "Amazing new feature",
  "body": "Please pull this in!",
  "head": "develop",
  "base": "master"
}
"{\"number\":32,\"state\":\"open\",\"updated_at\":\"2019-04-30T05:39:30Z\",...

In case of the same API in GitHub

{"url":"https://api.github.com/repos/SIkebe/test1/pulls/2","id":274604732,...

貢獻者指南