Use POST keyword rather than GET for stdin conversation /fetch route
This commit is contained in:
parent
a5c9039fee
commit
2263d8c724
@ -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.
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user