web stats
http uri filtering regexes? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 05-12-2017, 09:45 AM
sBham sBham is offline
Mirth Newb
Join Date: Feb 2017
Posts: 6
sBham is on a distinguished road
Default http uri filtering regexes?

Hey there

I was in the process of exposing an http end point to manage few translation values (key/value) for both my channels to use and another app to access. the http model or paradigm is rest. the end points are fairly simple (CRUD operations on a few tables).

So far everything is good and impressively fast.

However my questions is, is there a set of already existing example channels or templates to handle verification of contextpath? I am already successfully headers and query parameters.

an example use case would be: for a request with GET method, if the contextpath is /translations/12345, then I need to extract the 12345 and use it for proper routing ...

I did some searching in order to see if there is already regex code written that I can reuse, or if I am missing something from the code api but before starting to write regext extractors I figure I ask the forum...

DB: postgresql

Reply With Quote
Old 05-14-2017, 11:47 PM
siddharth siddharth is offline
Mirth Guru
Join Date: Feb 2013
Posts: 838
siddharth is on a distinguished road

The question is vague.

Are you talking about mirth hosted HTTP listener? Or an HTTP Sender? You want to consume an external API with different context paths? Please add more context.
Reply With Quote
Old 05-20-2017, 06:51 AM
sBham sBham is offline
Mirth Newb
Join Date: Feb 2017
Posts: 6
sBham is on a distinguished road
Thumbs up dynamic uri/context path parsing/filtering

Appoligies for delayed answer.
In this case it is on an http listener, and I wanted to make sure that there isn't any method on the current classes already ready to help me out parse/validate context paths that would match something like: /patients/{atientid}/allergies/{:allergytype} where the both patientid and allergytype would end up in a channel map that can be validated and ulitmately included in a query...

Reply With Quote

http listener, http restful

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 04:18 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation