sysPass / sysPass-doc

sysPass Documentation
https://doc.syspass.org
The Unlicense
6 stars 16 forks source link

API documentation: usergroup method is userGroup #6

Closed juangarat closed 5 years ago

juangarat commented 5 years ago

nuxsmin, I'm testing syspass 3.0.5 docker image solution. I'm developing python code to migrate accounts from CSV file and I was a few hours troubleshooting why this api request doesn't work

{
  "jsonrpc": "2.0",
  "method": "usergroup/search",
  "params": {
    "authToken": ""
  },
  "id": 1
}

API Response: {'jsonrpc': '2.0', 'error': {'message': 'Oops, it looks like this content does not exist...', 'code': -32601, 'data': None}, 'id': 1}

This is the API documentation

image

Finally, analyzing the code found that all references are userGroup with case G.

This works!

{
  "jsonrpc": "2.0",
  "method": "userGroup/search",
  "params": {
    "authToken": ""
  },
  "id": 1
}

Can you please fix this in docs?

Thanks!

Juan

nuxsmin commented 5 years ago

Oops, sorry I'll fix it shortly.

Thanks for the feedback!

Regards

nuxsmin commented 5 years ago

Done :wink: