Layer7 API Management

Policy Repository: Substring 

Mar 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
12 Views
1 Files
0 Shares
4 Downloads
Attachment(s)
zip file
substring.xml.zip   893 B   1 version
Uploaded - May 29, 2019

Tags and Keywords

Related Entries and Links

No Related Resource entered.