Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 919 Bytes

quick-start.md

File metadata and controls

32 lines (24 loc) · 919 Bytes

API quick start

Minimal HTTP GET against the public test server:

type: api
title: Get sample JSON
url: https://test.mmt.dev/json
method: get
format: json

Open the file in VS Code and click {{btn:send:Send}}. The Response panel shows status, headers, and body.

  • format encodes/decodes the body (default json) — see Format
  • Protocol is inferred from the URL (ws:// → WebSocket, otherwise HTTP)

For POST with a JSON body, add body:

type: api
title: Echo JSON
url: https://test.mmt.dev/echo
method: post
format: json
body:
  message: hello world

The echo server returns your payload in the response — useful for checking what was sent.

More: Body · HTTP · HTTP bodies · WebSocket · GraphQL · gRPC