mirror of
https://github.com/hoshikawa2/OCI_API_Gateway_Automation2.git
synced 2026-03-06 10:11:01 +00:00
adjustments in redaction code
This commit is contained in:
19
README.md
19
README.md
@@ -164,7 +164,7 @@ First, you need to import the **bravado** library for **validate_object**.
|
||||
|
||||

|
||||
|
||||
This code is responsible to redact your validation response:
|
||||
This code is responsible to beautify your validation response:
|
||||
|
||||

|
||||
|
||||
@@ -174,10 +174,23 @@ And you can put in the main function code:
|
||||
|
||||

|
||||
|
||||
The response will be like this:
|
||||
You need to use a library called [Redaction.py](./files/authApi/Redaction.py), included in this material. This class find your patterns for attributes that need redaction.
|
||||
|
||||

|
||||
Declare your patterns and attribute names:
|
||||
|
||||

|
||||
|
||||
So you can use the library like this:
|
||||
|
||||

|
||||
|
||||
When you request an REST service with this body content:
|
||||
|
||||

|
||||
|
||||
The response will be something like this:
|
||||
|
||||

|
||||
|
||||
## Resource Principal
|
||||
|
||||
|
||||
Reference in New Issue
Block a user