Skip to content

Commit

Permalink
Merge pull request #110 from buerokratt/ISSUE-59
Browse files Browse the repository at this point in the history
Issue 59
  • Loading branch information
alimuhammadahmer authored Jan 12, 2023
2 parents 6e46fb6 + a927c4b commit 7c8487d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 0 deletions.
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}

0 comments on commit 7c8487d

Please sign in to comment.