MyScriptJS icon indicating copy to clipboard operation
MyScriptJS copied to clipboard

Can I config the post suffix url?

Open idleb opened this issue 7 years ago • 5 comments

Can I config the post suffixurl (e.g. '/api/v4.0/iink/batch') when I need recognize? Because it's different in V3 and V4, but we used a same MyScript Server.

idleb avatar Aug 31 '18 02:08 idleb

The recognitionParams.apiVersion will make the switch for you. Have a look to this html file as an example.

padewitte avatar Aug 31 '18 06:08 padewitte

I know apiVersion, Maybe I did not explain it more clearly. I had an old version editor with a Myscript Server, then I want to use latest editor in a new product, and request the same api. But, I found the post url is unconfigurable.

idleb avatar Aug 31 '18 08:08 idleb

Are you doing some url rewriting ? Because the url are stable and are shared between cloud and server versions. Could you be specific on what your want to use ? Text, Math, Diagram? V2, V3 or V4 api? Rest or Websocket? Please be aware that MyScript Server give you the right to dedicated support through our partner website (but i fine to continue helping you here).

padewitte avatar Aug 31 '18 09:08 padewitte

@padewitte Thanks for you help

Yes, I want to use other url , not this . Or how can I hook postMessage mathod. I want to use MyScript-math-web V3 api to request MyScript Server that running V2. I think the Rest url should flexible for different version.

Now, I through configure the host by complete rest api and hash, to implement that V3 Editor request V2 MyScript Server

idleb avatar Aug 31 '18 16:08 idleb

MyScriptJS is not compatible with V2 api (we strongly advice to migrate ASAP as they are not maintained anymore and the V3 have just been deprecated). The only way to change the prefix is to fork MyScriptJS and add a dedicated Recognizer.

padewitte avatar Sep 04 '18 13:09 padewitte