From 64bc5c8136cdc6a0a76bc95883266f33e5c47a46 Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Thu, 18 Aug 2022 15:50:09 -0700 Subject: [PATCH 1/9] Remove API subnav --- src/_layouts/main.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/_layouts/main.html b/src/_layouts/main.html index ea897318b7..fca0ce1bfc 100644 --- a/src/_layouts/main.html +++ b/src/_layouts/main.html @@ -14,8 +14,6 @@ {% include menu/menu-glossary.html %} {% elsif currentPage[1] == 'partners' %} {% include menu/menu-partners.html %} - {% elsif currentPage[1] == 'config-api' %} - {% include menu/menu-config-api.html %} {% else %} {% include menu/menu.html %} {% endif %} From 2da86cba0bd96d3a7fc803d34241eff5e670983a Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Thu, 18 Aug 2022 16:04:23 -0700 Subject: [PATCH 2/9] Hide old Config API nav --- src/_data/sidenav/main.yml | 15 +++++++++++++++ src/_includes/icons/api.svg | 5 +++++ src/_includes/menu/menu.html | 4 ++-- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 src/_includes/icons/api.svg diff --git a/src/_data/sidenav/main.yml b/src/_data/sidenav/main.yml index 2384dcb427..e276f356a0 100644 --- a/src/_data/sidenav/main.yml +++ b/src/_data/sidenav/main.yml @@ -407,3 +407,18 @@ sections: title: Prod and Testing Environments in Segment - path: /segment-app/verify-email-address title: Verifying Your Email Address +- section_title: API + section: + - path: /config-api + title: Config API overview + - path: /config-api/api-design + title: API design + - path: /config-api/authentication + title: Authentication + - path: /config-api/fql + title: Destination Filter Query Language + - path: "https://reference.segmentapis.com/" + title: Reference + menu_icon: new-tab + - path: /config-api/tutorial-javascript-google-analytics + title: Creating a Javascript web source and Google Analytics destination \ No newline at end of file diff --git a/src/_includes/icons/api.svg b/src/_includes/icons/api.svg new file mode 100644 index 0000000000..527f27eff1 --- /dev/null +++ b/src/_includes/icons/api.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/src/_includes/menu/menu.html b/src/_includes/menu/menu.html index d881cf17df..d847716a8d 100644 --- a/src/_includes/menu/menu.html +++ b/src/_includes/menu/menu.html @@ -4,7 +4,7 @@ diff --git a/src/_sass/components/_markdown.scss b/src/_sass/components/_markdown.scss index dd1abc5847..f0befa2c1b 100644 --- a/src/_sass/components/_markdown.scss +++ b/src/_sass/components/_markdown.scss @@ -152,13 +152,16 @@ top: 0; left: 0; } + div.highlighter-rouge { margin: 15px auto; position: relative; } + table { margin: 15px auto; } + &>ul, ol { margin-top: 0; @@ -213,6 +216,14 @@ line-height: 1.5; padding: 24px; } + + img { + border: none; + display: inline; + margin: 0; + vertical-align: inherit; + } + } thead { @@ -309,7 +320,7 @@ } //a[target="_blank"]:not(.reference-button):after { - //content: url("/docs/images/external-link-alt-solid.svg"); +//content: url("/docs/images/external-link-alt-solid.svg"); // margin-left: 4px; //} @@ -406,12 +417,14 @@ div.highlighter-rouge { right: 0; border-radius: 0 0.15rem; width: 40px; + img { width: 16px; margin: 0; border: none; border-radius: 0px; } + img:hover { filter: invert(65%) sepia(9%) saturate(784%) hue-rotate(192deg) brightness(91%) contrast(87%); transition: 0.2s ease-out; @@ -422,7 +435,7 @@ div.highlighter-rouge { } } - .green{ + .green { background-color: #BAE5D5; content: "copied!"; } diff --git a/src/api/index.md b/src/api/index.md index cbe935becd..a705db7463 100644 --- a/src/api/index.md +++ b/src/api/index.md @@ -7,3 +7,17 @@ All CRUD endpoints in the API follow REST conventions and use standard HTTP meth For more information, see the [Segment Public API documentation](#). +## Config API vs Public API +The Public API includes the following benefits over the Config API: + +| Benefit | Details | +| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Future Enhancements | Future improvements will be added to the Public API only. | +| Improved error handling | The Public API offers more specific error messages, for faster issue resolution. | +| Versioning | Each endpoint on the Public API can have multiple versions. Stable versions can coexist with beta or alpha versions. | +| Higher rate limits | The Public API can offer higher rate limits when needed or different rate limits per endpoint or token. | +| Improved architecture | The Public API is built with improved security, checks for authentication, authorization, input validation, HTTPS exposed services, auto-scaling, and more in mind. | +| Cleaner mapping | The Public API uses unique IDs for reference, in place of slugs in the Config API. Unique IDs are, by design, unique. | +| Improved ease of use | | +| Available in Europe | | +| Increased reliability | The Public API features more stable endpoints, and a 99.8% success rate | \ No newline at end of file From cdd70f351f143007fa4ac0b3a7473809ff9754ef Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Fri, 2 Sep 2022 12:00:44 -0700 Subject: [PATCH 7/9] Update URL [netlify-build] --- src/api/index.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/api/index.md b/src/api/index.md index a705db7463..7e93d6cb3b 100644 --- a/src/api/index.md +++ b/src/api/index.md @@ -5,7 +5,12 @@ The Segment Public API helps you manage your Segment workspaces and its resource All CRUD endpoints in the API follow REST conventions and use standard HTTP methods. Different URL endpoints represent different resources in a workspace. -For more information, see the [Segment Public API documentation](#). +{% include components/reference-button.html + href="https://docs.segmentapis.com" + icon="media/programming.svg" + title="Segment Public API Documentation" + description="Research and test the Public API's available endpoints." +%} ## Config API vs Public API The Public API includes the following benefits over the Config API: @@ -18,6 +23,5 @@ The Public API includes the following benefits over the Config API: | Higher rate limits | The Public API can offer higher rate limits when needed or different rate limits per endpoint or token. | | Improved architecture | The Public API is built with improved security, checks for authentication, authorization, input validation, HTTPS exposed services, auto-scaling, and more in mind. | | Cleaner mapping | The Public API uses unique IDs for reference, in place of slugs in the Config API. Unique IDs are, by design, unique. | -| Improved ease of use | | -| Available in Europe | | +| Available in Europe | The Public API is accessible to both US and EU-based workspaces. | | Increased reliability | The Public API features more stable endpoints, and a 99.8% success rate | \ No newline at end of file From 6d29a482522c4629b39eb43148dd067f702e406b Mon Sep 17 00:00:00 2001 From: markzegarelli Date: Fri, 2 Sep 2022 14:18:47 -0700 Subject: [PATCH 8/9] Config API -> Public API [netlify-build] --- src/_data/glossary.yml | 2 +- src/_includes/menu/menu.html | 13 ------------- src/connections/destinations/add-destination.md | 12 ++++++------ .../destinations/repeater-migration.md | 4 ++-- .../functions/destination-functions.md | 2 +- src/connections/storage/catalog/aws-s3/index.md | 2 +- src/connections/storage/warehouses/faq.md | 2 +- .../usage-and-billing/account-management.md | 2 +- src/partners/checklist.md | 3 +-- src/partners/enable-with-segment.md | 8 ++++---- src/partners/spec.md | 2 +- src/privacy/user-deletion-and-suppression.md | 17 ++++++++--------- src/protocols/apis-and-extensions/index.md | 6 +++--- .../apis-and-extensions/typewriter-v7.md | 4 ++-- src/protocols/apis-and-extensions/typewriter.md | 4 +--- src/protocols/tracking-plan/create.md | 2 +- src/segment-app/iam/concepts.md | 2 +- 17 files changed, 35 insertions(+), 52 deletions(-) diff --git a/src/_data/glossary.yml b/src/_data/glossary.yml index 36aff1cbba..0960903d51 100644 --- a/src/_data/glossary.yml +++ b/src/_data/glossary.yml @@ -2,7 +2,7 @@ Analytics.js: | The Segment Javascript library wrapper, which makes it simple to send your data to any tool without having to learn, test or implement the new API for each tool every time. API: | - Application Programming Interface. In software, this term describes a way of interacting with software in an automated fashion, without the use of a user-interface designed for humans. In Segment, we call the standard calls (`track`, `page` and `screen`, `identify` and `group`) our API. We also provide the [Config API](/docs/config-api/), which you can use to configure sources and destinations, and perform other functions in your workspace, without logging in using a web browser. + Application Programming Interface. In software, this term describes a way of interacting with software in an automated fashion, without the use of a user-interface designed for humans. In Segment, we call the standard calls (`track`, `page` and `screen`, `identify` and `group`) our API. We also provide the [Public API](/docs/api/), which you can use to configure sources and destinations, and perform other functions in your workspace, without logging in using a web browser. App: | The app is what we call the main Segment web application, the part you log in to, and where you configure sources and destinations, see events in the debugger, manage your tracking plan, and so on. diff --git a/src/_includes/menu/menu.html b/src/_includes/menu/menu.html index d847716a8d..e1aba550db 100644 --- a/src/_includes/menu/menu.html +++ b/src/_includes/menu/menu.html @@ -3,19 +3,6 @@