Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial commit - RegexFlow Regular Expression #1943

Merged
merged 3 commits into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
initial commit - RegexFlow Regular Expression
  • Loading branch information
imreagocs-regexflow authored Sep 6, 2022
commit c21255013d4fb81911b00ef1f2733a8ad8f8208b
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
{
"swagger": "2.0",
"info": {
"title": "RegexFlow Regular Expression",
"description": "The Regular Expression connector enables the use of regular expression. The connector takes text and a regex pattern as inputs and returns was the pattern matched and the matched groups.",
v-EgorKozhadei marked this conversation as resolved.
Show resolved Hide resolved
"version": "1.0",
"contact": {
"name": "RegexFlow Support",
"url": "https://www.regexflow.com/",
"email": "support@regexflow.com"
}
},
"host": "publicapi.regexflow.com",
"basePath": "/RegexFlowSAS",
"schemes": [
"https"
],
"consumes": [
"text/plain"
],
"produces": [
"application/json"
],
"paths": {
"/RegexMultiGroup": {
"post": {
"parameters": [
{
"name": "pattern",
"in": "query",
"required": true,
"type": "string",
"x-ms-summary": "regular expression pattern",
"description": "regular expression pattern"
},
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"type": "string",
"x-ms-visibility": "important"
}
}
],
"produces": [
"application/json"
],
"responses": {
"200": {
"description": "Returned when the operation succeeds.",
"schema": {
"type": "object",
"properties": {
"isSuccess": {
"type": "boolean",
"description": "isSuccess"
},
"error": {
"type": "string",
"description": "Description of the error.",
"default": "null"
},
"matches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"MatchId": {
"type": "string",
"description": "MatchId"
},
"Match": {
"type": "string",
"description": "Match"
},
"groups": {
"type": "array",
"items": {
"type": "object",
"properties": {
"group": {
"type": "string",
"description": "group"
},
"groupValue": {
"type": "string",
"description": "groupValue"
}
}
},
"description": "groups"
}
}
},
"description": "matches"
},
"caution": {
"type": "string",
"description": "caution"
}
}
}
},
"401": {
"description": "Access denied due to invalid subscription key."
},
"403": {
"description": "Out of volume quota."
},
"500": {
"description": "Internal server error."
}
},
"operationId": "RegexMultiGroup",
"summary": "Regex pattern matching in the posted text",
"description": "Finds regular expression matches in the posted body and returns the captured groups, groups can be named."
}
}
},
"definitions": {},
"parameters": {},
"responses": {},
"securityDefinitions": {
"API Key": {
"type": "apiKey",
"in": "header",
"name": "Ocp-Apim-Subscription-Key"
}
},
"security": [
{
"API Key": []
}
],
"tags": [],
"x-ms-connector-metadata": [
{
"propertyName": "Website",
"propertyValue": "https://www.regexflow.com"
},
{
"propertyName": "Privacy policy",
"propertyValue": "https://regexflow.com/privacy_policy"
},
{
"propertyName": "Categories",
"propertyValue": "Content and Files;Data"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"properties": {
"connectionParameters": {
"api_key": {
"type": "securestring",
"uiDefinition": {
"displayName": "API Key",
"description": "The API Key for this api",
"tooltip": "Provide your API Key (https://portal.publicapi.regexflow.com/)",
"constraints": {
"tabIndex": 2,
"clearText": false,
"required": "true"
}
}
}
},
"iconBrandColor": "#6C2C74",
"capabilities": [],
"publisher": "Imre Agocs"
v-EgorKozhadei marked this conversation as resolved.
Show resolved Hide resolved
}
}
20 changes: 20 additions & 0 deletions certified-connectors/RegexFlow Regular Expression/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# RegexFlow Regular Expression
The Regular Expression connector enables the use of regular expression. The connector takes text and a regex pattern as inputs and returns was the pattern matched and the matched groups

## Publisher: Epicycle

## Prerequisites
You will need the following to proceed:
* A RegexFlow Regular Expression subscription

## Supported Operations

### RegexMultiGroup
Based on the pattern parameter and posted text returns the matched patterns and matched groups

## Known Issues and Limitations
* The usage usage quota is 1000 calls per month and there is a rate limit in place of 10 calls per minute. Please consider our private offerings which have no rate limits or monthly quotas, whilst also helping you meet your compliance obligations [RegexFlow](https://regexflow.com/).
* The '+' character in the pattern must be replaced with '%2B'

## Obtaining Credentials
You can get your own API key from the [RegexFlow Regular Expression Portal](https://portal.publicapi.regexflow.com/).