Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 59 #110

Merged
merged 3 commits into from
Jan 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Docker_Project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,10 @@ Add [Ruuter DSL File](Ruuter/DSL/GET/regex.yml) and [Resql Query](Resql/template
https://github.com/buerokratt/Data-Anonymizer/issues/63

Add [Ruuter DSL File](Ruuter/DSL/GET/delete_regex.yml) and [Resql Query](Resql/templates/production/delete_regex.sql) to delete a regex pattern.

### Add new Regex pattern to the database

https://github.com/buerokratt/Data-Anonymizer/issues/59

- Add [Ruuter DSL File](Ruuter/DSL/POST/regex.yml) and [Resql Query](Resql/templates/production/insert_regex.sql) to add a regex pattern.
- Add [Ruuter DSL File](Ruuter/DSL/GET/entity.yml) and [Resql Query](Resql/templates/production/list_entity.sql) to list entities.
1 change: 1 addition & 0 deletions Docker_Project/Resql/templates/production/insert_regex.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
insert into Regex_Entity (entity, regex) VALUES (:entity, :regex) RETURNING id;
1 change: 1 addition & 0 deletions Docker_Project/Resql/templates/production/list_entity.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
select name, description from Entity;
8 changes: 8 additions & 0 deletions Docker_Project/Ruuter/DSL/GET/entity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
list_entity:
call: http.post
args:
url: http://resql:8082/list_entity
result: request_response

return_value:
return: ${request_response.response.body}
11 changes: 11 additions & 0 deletions Docker_Project/Ruuter/DSL/POST/regex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
insert_regex:
call: http.post
args:
url: http://resql:8082/insert_regex
body:
regex: ${incoming.body.regex}
entity: ${incoming.body.entity}
result: request_response

return_value:
return: ${request_response.response.body}