Skip to content

Commit

Permalink
Apply suggestions from code review. See #114
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Steeg <[email protected]>
  • Loading branch information
katauber and fsteeg authored Sep 5, 2023
1 parent 74f83f7 commit d590fa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ The ***production deployment*** is available at [https://metafacture.org/playgro

The current ***test deployment*** is available at [https://test.metafacture.org/playground/](https://test.metafacture.org/playground/).

Both deployments provide a web application and and HTTP REST API
Both deployments provide a web application and an HTTP API

[Here](CONTRIBUTING.md) you can read about contributing to Metafacture Playground.

Expand Down Expand Up @@ -165,6 +165,6 @@ move_field(a, title)
paste(author, b.v, b.n, '~aus', c)
retain(id, title, author)
```
The parameter values must be url encoded so the url looks looks like this:
The parameter values must be URL-encoded so the URL looks like this:

http://localhost:3000/process?flux=inputFile%0A%7Copen-file%0A%7Cas-lines%0A%7Cdecode-formeta%0A%7Cfix%28transformationFile%29%0A%7Cencode-xml%28rootTag%3D%22collection%22%29%0A%7Cprint%0A%3B&transformation=move_field%28_id%2C+id%29%0Amove_field%28a%2C+title%29%0Apaste%28author%2C+b.v%2C+b.n%2C+%27~aus%27%2C+c%29%0Aretain%28id%2C+title%2C+author%29&data=1%7Ba%3A+Faust%2C+b+%7Bn%3A+Goethe%2C+v%3A+JW%7D%2C+c%3A+Weimar%7D%0A2%7Ba%3A+R%C3%A4uber%2C+b+%7Bn%3A+Schiller%2C+v%3A+F%7D%2C+c%3A+Weimar%7D
2 changes: 1 addition & 1 deletion resources/examples/How_to_use_the_Playground
Original file line number Diff line number Diff line change
@@ -1 +1 @@
https://test.metafacture.org/playground/?flux=inputFile+//This+is+an+variable+for+the+input+data.%0A%0A//+These+are+Metafacture+modules.%0A%7C+open-file%0A%7C+as-records%0A%7C+decode-json%0A%7C+fix%28transformationFile%29+//+This+uses+a+variable+to+refrence+the+content+of+the+box+transformationFile%0A%7C+encode-yaml%0A%7C+print%0A%3B&transformation=replace_all%28%22Hello%22%2C%22orld%22%2C%22eirdos%22%29%0Aremove_field%28%22This%5B%5D.3%22%29%0Aremove_field%28%22Please%22%29%0Aadd_field%28%22This%5B%5D.%24append%22%2C%22output%22%29%0Aadd_field%28%22Great%22%2C%22Success%21%22%29%0A&data=%7B%0A++++%22Hello%22%3A+%22World%22%2C%0A++++%22This%22%3A+%5B%22is%22%2C+%22an%22%2C%22input%22%2C%22example%22%5D%2C%0A++++%22Please%22%3A+%22Paste+your+input+data+here%2C+if+needed%22%0A%7D
https://test.metafacture.org/playground/?flux=inputFile+//+This+is+a+variable+for+the+input+data.%0A%0A//+These+are+Flux+commands.%0A%7C+open-file%0A%7C+as-records%0A%7C+decode-json%0A%7C+fix%28transformationFile%29+//+This+uses+a+variable+to+reference+the+content+of+the+box+transformationFile.%0A%7C+encode-yaml%0A%7C+print%0A%3B&transformation=replace_all%28%22Hello%22%2C%22ld%22%2C%22kers%22%29%0Aremove_field%28%22This%5B%5D.3%22%29%0Aremove_field%28%22Please%22%29%0Aadd_field%28%22This%5B%5D.%24append%22%2C%22output%22%29%0Aadd_field%28%22Great%22%2C%22Success%21%22%29%0A&data=%7B%0A++++%22Hello%22%3A+%22World%22%2C%0A++++%22This%22%3A+%5B%22is%22%2C%22an%22%2C%22input%22%2C%22example%22%5D%2C%0A++++%22Please%22%3A+%22Paste+your+input+data+here%2C+if+needed%22%0A%7D

0 comments on commit d590fa5

Please sign in to comment.