M-SALT API Client¶
A reference implementation of a client of the M-SALT API.
The user navigates to the SALT-Portal and starts the client application.
The client initializes itself, gets a list of known active APIs, and calls the
GET /v1 endpoint of each known API to get the API status and further
The client transliterates the user input into transliterations accepted by each
API and calls their
GET /v1/headwords endpoints. It then transliterates
the answers received and displays them to the user. Transliteration occurs only
The client calls the
GET /v1/articles/(id)/formats endpoint, retrieves
the available formats from the API, and selects the most appropriate one. It
then retrieves the article text (if not already embedded in the response) and
displays it to the user. The client transliterates marked sections of the
article if necessary. The client allows the user to page through articles
retrieved in multiple parts (eg. as a series of scans).