Layer 7 API Management

Policy Repository: Substring 

03-15-2019 01:45 PM

A simple policy that allows extraction of a substring


To use:

 

  1. Open policy manager and create a test service
  2. Download the attached file and import the XML file into your new service
  3. Modify these variables as needed:
    STRING: The string to extract the substring from
    START: The starting position
    LEN: Length of characters to extract
  4.  Hit the endpoint via your desired user agent (i.e: browser, SOAPUI, etc).

 

Sample output

 

Full string: This is a test string  
Start Position: 1
Length: 4
Result: This

Statistics
0 Favorited
7 Views
1 Files
0 Shares
3 Downloads
Attachment(s)
zip file
substring.xml.zip   893B   1 version
Uploaded - 05-29-2019

Tags and Keywords

Related Entries and Links

No Related Resource entered.