Project

General

Profile

Actions

Support #5423

open

API-Documentation for Method "create_repo_group" faulty

Added by Malte Onnen about 6 years ago. Updated about 6 years 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
}

Actions #1

Updated by Marcin Kuzminski [CTO] about 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.

Actions #2

Updated by Malte Onnen about 6 years ago

Thanks for the quick fix anyway :-)

Actions

Also available in: Atom PDF