Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Can I config the post suffix url? #14

Open
idleb opened this issue Aug 31, 2018 · 5 comments
Open

Can I config the post suffix url? #14

idleb opened this issue Aug 31, 2018 · 5 comments

Comments

@idleb
Copy link

idleb commented Aug 31, 2018

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 idleb changed the title Can I config the post url? Can I config the post suffix url? Aug 31, 2018
@padewitte
Copy link
Contributor

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

@idleb
Copy link
Author

idleb commented Aug 31, 2018

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.

@padewitte
Copy link
Contributor

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).

@idleb
Copy link
Author

idleb commented Aug 31, 2018

@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

@padewitte
Copy link
Contributor

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.

L4ngu0r pushed a commit that referenced this issue Nov 14, 2018
…o master

* commit '36c19d5b417f34427639c81ba0d1503e35494f51':
  [V4 REST]Add a no UI example and made the necessary modification in the lib to make it work. Still need some design improvements
  update(doc): with esdoc 1.1.0
  fix npm vulnerabilities + upgrade esdoc (MSIS-1846)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants