Closed SmartLayer closed 5 years ago
@colourful-land I suppose we'll be including the supported schema version when we make the request?
Update: forgot that server can use iOS/Android versions sent in header to check.
@hboon we started with a simple idea to avoid over-designing in the beginning, but we probably shouldn't be using iOS/Android version anymore more if we activate repo.tokenscript.org since other clients (metamask-based one - to be invented) can't supply those. So we should utilise some kind of content-negotiation in the request.
@colourful-land we should probably still send the headers that we have now for completion (we might want stats etc later), but include the schema version to be used for content-negotiation?
@colourful-land we should probably still send the headers that we have now for completion (we might want stats etc later), but include the schema version to be used for content-negotiation?
Agree. Check this: https://github.com/AlphaWallet/TokenScript-Repo/blob/master/README.md
And follow the link "user-agent behaviour" to see the client spec maintained.