diff --git a/README.md b/README.md index a759252..dbb94b2 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ integrate it with Node modules using Then, you can write on `stdin` and fetch the responses from `stdout`. Available commands are: * `GET /list` to list all available modules. -* `GET /fetch JSON_PARAMS` where `JSON_PARAMS` is an input JSON for module +* `POST /fetch JSON_PARAMS` where `JSON_PARAMS` is an input JSON for module parameters. * `exit` to quit the script and end the conversation. diff --git a/stdin_conversation.py b/stdin_conversation.py index 335cbd9..3e10b5e 100755 --- a/stdin_conversation.py +++ b/stdin_conversation.py @@ -48,7 +48,7 @@ def process_query(query): # List modules view logger.info("Calling /list view.") return list_view() - elif query.startswith("GET /fetch"): + elif query.startswith("POST /fetch"): # Fetch modules view logger.info("Calling /list view.") params = query.split()[2]