Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first questions after studying MYC portal
#6
(11-29-2016, 03:35 PM)Guido1982 Wrote: Basically I could create a file in a new module and register the webservice method using 'registerWSAPI'.

Correct

(11-29-2016, 03:35 PM)Guido1982 Wrote: What's the 'prelogin' part?

if set to 1 you will be able to access the service without requiring a valid login. It will be an open service, for example, getchallenge and login are open. If set to 0 you will only be able to use the service with a valid login session.


(11-29-2016, 03:35 PM)Guido1982 Wrote: Also, if I specify a certain type (e.g. "POST", will it fail when I try it through a GET request?

Yes, this is checked and will fail if you use the wrong method.

(11-29-2016, 03:35 PM)Guido1982 Wrote: Is it mandatory to set the 'queryParameters' type in the 'parameters' in the 'operationInfo'?

yes.

(11-29-2016, 03:35 PM)Guido1982 Wrote: Basically I could make a webservice method that returns records from my module in any form I like, in array form? The webservice file will automatically JSON encode?

webservice will automatically JSON encode. it will always be a JSON response
Joe
TSolucio
Reply


Messages In This Thread
RE: My first questions after studying MYC portal - by joebordes - 11-29-2016, 03:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)