This document describes the protocol of Mono Corp API Proxy (MCAP). This protocol is created for Mono PWA project.
- Root: describes the publicly available URL path, which contains methods as subfolders;
- Method: Named public command, the way to interact with MCAP for different actions. A simulated subfolder of Root;
- Response: JSON marshaled output of Method with
application/json
Content-Type and200 OK
response code; - Error: A Response with an
error
key instead of the expected output. The key contains error description ->{"error": "description"}
; - Long-Polling: Keeping an HTTP request alive without outputting the response body until a trigger;
- %METHOD% /%resource% Monobank Request: An HTTP %METHOD% (GET|POST|...) request to https://api.monobank.ua/%resource% ->
POST /personal/auth/request Monobank Request
. See Sending requests to Monobank;