internetofwater / geoconnex.us

URI registry for https://geoconnex.us based URIs
Other
24 stars 15 forks source link

WaDE Site IDs regex redirect #39

Closed ksonda closed 4 years ago

ksonda commented 4 years ago

Contact Information

Your name: Kyle Onda (on behalf of Adel Abdallah, @amabdallah)

Your email: kyle.onda@duke.edu

Your organization: Internet of Water (on behalf of Wester States Water Council Water Data Exchange)

Your organization website: https://www.wade.westernstateswater.org

Regex redirect request details

The base PID pattern you would like

PID pattern: https://geoconnex.us/wade/sites/XX-####

The desired target URI base pattern

https://wade-api-qa.azure-api.net/v1/SiteAllocationAmounts?SiteUUID=XX-####

Explanation of the kinds of expressions to match from the end of the PID pattern to the end of the target pattern.

Expression type: Two-character capitalized state code, followed by an underscore and then a usually numeric string that may might have letters and other characters.

(([A-Z])([A-Z])(_)[A-Za-z0-9\-\_]+).*$

2-3 example target URIs

Target URI example: https://wade-api-qa.azure-api.net/v1/SiteAllocationAmounts?SiteUUID=CO_111339

Target URI example: https://wade-api-qa.azure-api.net/v1/SiteAllocationAmounts?SiteUUID=ID_100759