Project

General

Profile

Support #5423

API-Documentation for Method "create_repo_group" faulty

Added by Malte Onnen over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
22.01.2018
Due date:
% Done:

0%

Estimated time:
Sorting:
Commit Number:
Affected Version:

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:
}
"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
testgrp"
},
"error": null
}

Actual Result:
{
"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
testgrp"
},
"error": null
}

History

#1 Updated by Marcin Kuzminski [staff] over 1 year 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.

#2 Updated by Malte Onnen over 1 year ago

Thanks for the quick fix anyway :-)

Also available in: Atom PDF