gogs version: 0.14.0+dev
when calling with
curl -X POST -H "Content-Type: application/json" -d @test.json http://xxx/api/v1/repos/xxx/test/hooks?token=xxx
while test.json :
{
"type": "gogs",
"config": {
"content_type": "json",
"url": "http://xxx/hook"
},
"events": [
"push"
],
"active": true
}
it responses:
[
{
"fieldNames": [
"Type"
],
"classification": "RequiredError",
"message": "Required"
},
{
"fieldNames": [
"Config"
],
"classification": "RequiredError",
"message": "Required"
}
]
gogs version: 0.14.0+dev
when calling with
while
test.json:{ "type": "gogs", "config": { "content_type": "json", "url": "http://xxx/hook" }, "events": [ "push" ], "active": true }it responses:
[ { "fieldNames": [ "Type" ], "classification": "RequiredError", "message": "Required" }, { "fieldNames": [ "Config" ], "classification": "RequiredError", "message": "Required" } ]