From 178f8417bc7ff8bb356bdbba164d9ed2e1dec1f3 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sat, 6 May 2017 12:17:15 -0700 Subject: [PATCH] Updating README.md --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d8ef2fa..a76bcfb 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ extensions) can then communicate with it via HTTP POST requests. ### Sample Invocation ### -Every request consists of a JSON-encoded object containing an *action*, and a set of contextual *parameters*. -A simple example of a JavaScript application communicating with the extension is illustrated below: +Every request consists of a JSON-encoded object containing an *action*, and a set of contextual *parameters*. A simple +example of a JavaScript application communicating with the extension is illustrated below: ```JavaScript function ankiInvoke(action, params={}) { @@ -82,10 +82,8 @@ curl localhost:8765 -X POST -d '{"action": "version", "params": {}}' ### Supported Actions ### -The following actions are currently supported. - -Note that the sample requests are written here as Javascript objects rather than raw JSON. -If you are writing raw requests be sure to send valid JSON (i.e. quote all keys and strings with +Below is a list of currently supported actions. Note that the sample requests are written here as JavaScript objects +rather than raw JSON. If you are writing raw requests be sure to send valid JSON (i.e. quote all keys and strings with `"`, and remove any comments). * **version**