From b8bf608a4b72bea1a4f9f5bcb520a138e3803f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Abdelkader=20Mart=C3=ADnez=20P=C3=A9rez?= Date: Fri, 22 Nov 2019 14:18:36 +0100 Subject: [PATCH] Update _brainstorm.rst --- docs/source/tutorial/_brainstorm.rst | 51 ++++++++++++++++------------ 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/docs/source/tutorial/_brainstorm.rst b/docs/source/tutorial/_brainstorm.rst index 657f02b..4b7e2ee 100644 --- a/docs/source/tutorial/_brainstorm.rst +++ b/docs/source/tutorial/_brainstorm.rst @@ -31,6 +31,7 @@ ACME's Infrastructure --------------------- - 2 Linux machines + - Corporate Server - Backup Server @@ -38,28 +39,36 @@ User Journey ------------ #. Actions over the database. Launch database backup script with an HTTP call. - - User Learns: Add a route that executes a command locally. - - Kapow! Concepts: `kapow route add` -#. Basic database monitorization - - User Learns: Execute local commands and output it results to the HTTP body. - - Kapow! Concepts: `kapow set /response/body` -#. Advanced database monitorization - - User Learns: Compose complex HTTP responses with more than one local command. - - Kapow! Concepts: HEREDOC and subshells -#. Share your achievements - - User Learns: Format a complex HTTP response with JSON format to feed the corporate dashboard. - - Kapow! Concepts: backtick interpolation and `kapow set /response/headers` -#. Unifing the interface (???) - - User Learns: Add logic to the handler. React to a specific request. - - Kapow! Concepts: `kapow get /request/headers` and IF (bash) - - - Ideas ------- -/request/params -> Filter the results of a backup query -Use redirects to from one Kapow! server to another. I.e: 192.168.1.1/backups/{path:.*} --> 192.168.1.2/ -/request/files -> Firma el fichero que sube el usuario y te lo devuelve firmado. + - User Learns: Add a route that executes a command locally. + - Kapow! Concepts: `kapow route add` + +#. Basic database monitorization + + - User Learns: Execute local commands and output it results to the HTTP body. + - Kapow! Concepts: `kapow set /response/body` + +#. Advanced database monitorization + - User Learns: Compose complex HTTP responses with more than one local command. + - Kapow! Concepts: HEREDOC and subshells + +#. Share your achievements + + - User Learns: Format a complex HTTP response with JSON format to feed the corporate dashboard. + - Kapow! Concepts: backtick interpolation and `kapow set /response/headers` + +#. Unifing the interface (???) + + - User Learns: Add logic to the handler. React to a specific request. + - Kapow! Concepts: `kapow get /request/headers` and IF (bash) + + +Ideas +----- + +- /request/params -> Filter the results of a backup query +- Use redirects to from one Kapow! server to another. I.e: 192.168.1.1/backups/{path:.*} --> 192.168.1.2/ +- /request/files -> Firma el fichero que sube el usuario y te lo devuelve firmado. .. note::