You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, PIMO offers a command-line interface (CLI) for masking JSON data based on a configuration in a masking.yml file. To enhance its flexibility, I propose adding a dynamic API feature, introducing a new pimo serve command.
Proposed Features
Addition of a new pimo serve command to start a dynamic API server.
Endpoint POST /context/ to dynamically create a context using a masking.yml file.
Example request: curl -X POST -H 'Content-Type: application/x-yaml' -d @'my-masking-file.yml' http://localhost:8080/context
Endpoint POST /context/{contextID} to mask data based on a specific masking.yml file for a context.
Example request: curl -X POST -H 'Content-Type: application/json' -d @'input.json' http://localhost:8080/context/context-id
Endpoint DELETE /context/{contextID} to delete a specific context.
Example request: curl -X DELETE http://localhost:8080/context/context-id
How to Test
Run pimo serve to start the dynamic API server.
Send POST requests to create a context, POST requests to mask data, and DELETE requests to delete a context using curl or a similar tool.
Description
Currently, PIMO offers a command-line interface (CLI) for masking JSON data based on a configuration in a
masking.yml
file. To enhance its flexibility, I propose adding a dynamic API feature, introducing a newpimo serve
command.Proposed Features
pimo serve
command to start a dynamic API server.masking.yml
file.curl -X POST -H 'Content-Type: application/x-yaml' -d @'my-masking-file.yml' http://localhost:8080/context
masking.yml
file for a context.curl -X POST -H 'Content-Type: application/json' -d @'input.json' http://localhost:8080/context/context-id
curl -X DELETE http://localhost:8080/context/context-id
How to Test
pimo serve
to start the dynamic API server.curl -X POST -H 'Content-Type: application/x-yaml' -d @'my-masking-file.yml' http://localhost:8080/context
curl -X POST -H 'Content-Type: application/json' -d @'input.json' http://localhost:8080/context/context-id
curl -X DELETE http://localhost:8080/context/context-id
Expected Results
The text was updated successfully, but these errors were encountered: