eq-3 / occu

200 stars 57 forks source link

JSON-RPC API: Whats the prefered way to aquire a _session_id_ from my CCu3? #120

Closed firsttris closed 1 year ago

firsttris commented 1 year ago

I tried to use the Session.Login Method but the CCu3 only returns "method not found" https://github.com/eq-3/occu/blob/master/WebUI/www/api/methods/session/login.tcl#L2

image image

Other functions (like Room.getAll) are working fine if I add a valid _sessionid

what am i doing wrong?

whats the recommanded way to aquire a _sessionid?

firsttris commented 1 year ago

after studying the source code i found that its just this comment which is wrong https://github.com/eq-3/occu/blob/master/WebUI/www/api/methods/session/login.tcl#L2

the methodname is Session.login instead of Session.Login

jp112sdl commented 1 year ago

In the methods.conf it is documented correctly https://github.com/eq-3/occu/blob/26f63a4820907230a589a1654387001c62a7aa51/WebUI/www/api/methods.conf#L759-L764

jens-maus commented 1 year ago

Comments are comments and should IMHO not be taken as serious are the filename and the main docu.