Tutorials

Various tutorials on RightMV from beginner to expert.

TUTORIAL 26 · STEP 1 OF 18

Build REST APIs with MV BASIC

Understand and extend the BANKDEMO REST path from HTTP request to MultiValue data and JSON response

01

Follow one request through BANKDEMO

BANKDEMO implements REST as a small adapter around ordinary catalogued MV BASIC subroutines. The listener receives HTTP, packages the request as a dynamic array and calls BANK.HTTP.REQUEST. That router selects a business handler, the handler reads MultiValue files, and a response helper packages status, content type and JSON for the HTTP server. The browser JavaScript is only a client of that API; the routing and data access remain in MV BASIC.