Support #5423
openAPI-Documentation for Method "create_repo_group" faulty
0%
Description
Adding the group_description does not work as described in the Docs.
Api-Call from PowerShell:
Invoke-WebRequest https://rhodecode-url/_admin/api -Method Post -Body {"args":{"description":"testDescriptionWithoutBlanks","owner":2,"group_name":"testgrp"},"method":"create_repo_group","auth_token":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","id":1}
I also tried:
Invoke-WebRequest https://rhodecode-url/_admin/api -Method Post -Body {"args":{"group_description":"testDescriptionWithoutBlanks","owner":2,"group_name":"testgrp"},"method":"create_repo_group","auth_token":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","id":1}
Expected Result:
}
testgrp
"id": 1,
"result": {
"repo_group": {
"parent_group": null,
"group_name": "testgrp",
"group_description": "testDescriptionWithoutBlanks",
"group_id": 12,
"owner": "SUPERADMIN-USER",
"repositories": []
},
"msg": "Created new repo group"
},
"error": null
}
Actual Result:
{
testgrp
"id": 1,
"result": {
"repo_group": {
"parent_group": null,
"group_name": "testgrp",
"group_description": "testgrp",
"group_id": 12,
"owner": "SUPERADMIN-USER",
"repositories": []
},
"msg": "Created new repo group"
},
"error": null
}
Updated by Marcin Kuzminski [CTO] over 6 years ago
- Status changed from New to Resolved
Hi,
Thanks for reporting this infact it's an issue with setting up description. We pushed the fix into the code and will be fixed on next release.