Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Spec details #183

Open
rdminfinity opened this issue Feb 27, 2023 · 2 comments
Open

API Spec details #183

rdminfinity opened this issue Feb 27, 2023 · 2 comments

Comments

@rdminfinity
Copy link

Following up on the conversation on the MVDBMS group about implementing a non-accuterm version of the API Spec per @pschellenbach recommendation.

We would really like to help out with this if possible and start a discussion on the specs that are needed.

@pschellenbach
Copy link

Awesome!

Have you looked at the docs here in the repo? Its pretty much a CRUD API, with a few niceties to compile, catalog, etc. There is a Postman example to help debug. The only thing that might be confusing in the example is the Authorization token. This is returned by the login function, and passed to all the other functions. In AccuTerm's implementation, the token encodes the parameters needed to connect to the server through AccuTerm. Which is useful if multiple AccuTerm sessions are connected to different servers. Other implementations are free to use it as needed.

Also, one abstraction we made in the spec is to convert the Pick record structure into a nested Javascript array for attributes, values, sub-values. This way we do not need to do any delimiter handling at the API level. We never properly implemented the mark characters in the extension itself. Currently value & sub-value marks are converted into 0xF8FD and 0xF8FC when unpacking the nested arrays. We were looking at the idea of some sort of ligature API to render the marks using conventional "]" and "" characters with some sort of highlighting to differentiate them.

To aid your development it might be useful to have a copy of AccuTerm to use as a reference.

@itsxallwater
Copy link
Member

Adding links to the files Pete mentioned, specifically MV REST File System API.md and MV REST File System.postman_collection.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants