From 6b1949a196122b82309b3ddb6fa536fa9df2f5cf Mon Sep 17 00:00:00 2001 From: Anand Ramakrishnan Date: Thu, 3 Nov 2022 23:05:26 -0700 Subject: [PATCH 1/3] Move FQL references from Config to PAPI. --- src/_data/sidenav/main.yml | 11 +++++++---- src/api/{config-api => public-api}/fql.md | 2 +- src/api/{public-api.md => public-api/index.md} | 2 ++ src/connections/destinations/destination-filters.md | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) rename src/api/{config-api => public-api}/fql.md (99%) rename src/api/{public-api.md => public-api/index.md} (98%) diff --git a/src/_data/sidenav/main.yml b/src/_data/sidenav/main.yml index 0b154800d2..087550c9d6 100644 --- a/src/_data/sidenav/main.yml +++ b/src/_data/sidenav/main.yml @@ -475,8 +475,13 @@ sections: title: Verifying Your Email Address - section_title: API section: - - path: /api/public-api - title: Public API + - section_title: Public API + slug: api/public-api + section: + - path: /api/public-api + title: Public API + - path: /api/public-api/fql + title: Destination Filter Query Language - section_title: Config API slug: api/config-api section: @@ -486,8 +491,6 @@ sections: title: API design - path: /api/config-api/authentication title: Authentication - - path: /api/config-api/fql - title: Destination Filter Query Language # - path: "https://reference.segmentapis.com/" # title: Reference # menu_icon: new-tab diff --git a/src/api/config-api/fql.md b/src/api/public-api/fql.md similarity index 99% rename from src/api/config-api/fql.md rename to src/api/public-api/fql.md index 4b24f7b013..95f4004b82 100644 --- a/src/api/config-api/fql.md +++ b/src/api/public-api/fql.md @@ -1,7 +1,7 @@ --- title: Destination Filter Query Language redirect_from: - - '/docs/config-api/fql' + - '/docs/public-api/fql' --- {% include content/papi-ga.html %} diff --git a/src/api/public-api.md b/src/api/public-api/index.md similarity index 98% rename from src/api/public-api.md rename to src/api/public-api/index.md index 7e93d6cb3b..685218be2f 100644 --- a/src/api/public-api.md +++ b/src/api/public-api/index.md @@ -1,5 +1,7 @@ --- title: Public API +redirect_from: + - '/public-api' --- The Segment Public API helps you manage your Segment workspaces and its resources. You can use the API to perform CRUD (create, read, update, delete) operations at no extra charge. This includes working with resources such as Sources, Destinations, Warehouses, Tracking Plans, and the Segment Destinations and Sources Catalogs. diff --git a/src/connections/destinations/destination-filters.md b/src/connections/destinations/destination-filters.md index bb88542016..e27347f3e7 100644 --- a/src/connections/destinations/destination-filters.md +++ b/src/connections/destinations/destination-filters.md @@ -46,7 +46,7 @@ To create a destination filter: ## Destination filters API -The destination filters API provides more power than Segment's dashboard destination filters settings. With the API, you can create complex filters that are conditionally applied using Segment's [Filter Query Language (FQL)](/docs/api/config-api/fql/). +The destination filters API provides more power than Segment's dashboard destination filters settings. With the API, you can create complex filters that are conditionally applied using Segment's [Filter Query Language (FQL)](/docs/api/public-api/fql/). The destination filters API offers four different filter types: From c217a53abc1024d0211eb09d8364934be2827c56 Mon Sep 17 00:00:00 2001 From: Anand Ramakrishnan Date: Thu, 3 Nov 2022 23:09:53 -0700 Subject: [PATCH 2/3] [netlify-build] test out PR build. --- src/api/public-api/fql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/public-api/fql.md b/src/api/public-api/fql.md index 95f4004b82..0e7dae4f18 100644 --- a/src/api/public-api/fql.md +++ b/src/api/public-api/fql.md @@ -130,7 +130,7 @@ You can use parentheses to group subexpressions for more complex "and / or" logi | `length( list or string )` | `number` | Returns the number of elements in a list or number of bytes (not necessarily characters) in a string. For example, `a` is 1 byte and`ア` is 3 bytes long. | | `lowercase( s string )` | `string` | Returns `s` with all uppercase characters replaced with their lowercase equivalent. | | `typeof( value )` | `string` | Returns the type of the given value: `"string"`, `"number"`, `"list"`, `"bool"`, or `"null"`. | -| `match( s string, pattern string )` | `bool` | Returns `true` if the glob pattern `pattern` matches `s`. See below for more details about glob matching. | +| `match( s string, pattern string )` | `bool` | Returns `true` if the glob pattern `pattern` matches `s`. See below for more details about glob matching. | Functions handle `null` with sensible defaults to make writing FQL more concise. For example, you can write `length( userId ) > 0` instead of `typeof( userId ) = From a5841306c1fac6f10ae1ad7c827e3be66c40032c Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Mon, 7 Nov 2022 09:05:12 -0800 Subject: [PATCH 3/3] Fix redirect --- src/api/public-api/fql.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/public-api/fql.md b/src/api/public-api/fql.md index 0e7dae4f18..33aa88dfd8 100644 --- a/src/api/public-api/fql.md +++ b/src/api/public-api/fql.md @@ -1,7 +1,7 @@ --- title: Destination Filter Query Language redirect_from: - - '/docs/public-api/fql' + - '/docs/config-api/fql' --- {% include content/papi-ga.html %}