Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 95b91f6

Browse files
authored
Make the identity page viewable again (#966)
1 parent f4906f7 commit 95b91f6

File tree

3 files changed

+39
-17
lines changed

3 files changed

+39
-17
lines changed

site/custom.config.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
2-
"numbersSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/numbers.yml",
3-
"phoneNumberLookupSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/phone-number-lookup.yml",
4-
"voiceSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/voice.yml",
5-
"messagingSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/messaging.yml",
6-
"messagingInternationalSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/messagingInternational.json",
7-
"webRtcSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/webrtc.yml",
8-
"multiFactorAuthSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/multi-factor-auth.yml",
9-
"dashSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dash.json",
10-
"dashNotificationsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dashNotifications.json",
11-
"insightsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/insights.yml"
2+
"numbersSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/numbers.yml",
3+
"phoneNumberLookupSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/phone-number-lookup.yml",
4+
"voiceSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/voice.yml",
5+
"messagingSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/messaging.yml",
6+
"messagingInternationalSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/messagingInternational.json",
7+
"webRtcSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/webrtc.yml",
8+
"multiFactorAuthSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/multi-factor-auth.yml",
9+
"dashSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dash.json",
10+
"dashNotificationsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/dashNotifications.json",
11+
"identitySpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/one-identity-management.yml",
12+
"insightsSpecLink": "https://github.com/Bandwidth/api-docs/blob/main/site/specs/insights.yml"
1213
}

site/docusaurus.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ const globalSpec = fs.readFileSync("./specs/global.yml", "utf-8");
3030
const globalSpec_v2 = fs.readFileSync("./specs/global-v2.yml", "utf-8");
3131
const globalSpec_v3 = fs.readFileSync("./specs/global-v3.yml", "utf-8");
3232
const globalSpec_beta = fs.readFileSync("./specs/global-beta.yml", "utf-8");
33+
const identitySpec = fs.readFileSync(
34+
"./specs/one-identity-management.yml",
35+
"utf-8"
36+
);
37+
const identityspecLink = "";
3338
const insightsSpec = fs.readFileSync("./specs/insights.yml", "utf-8");
3439
const pipedream = "https://eowxoldwz4d7syt.m.pipedream.net";
35-
/**
36-
* TODO ONEID-1304
37-
* const identitySpec = fs.readFileSync('./specs/one-identity-management.yml', 'utf-8');
38-
*/
3940

4041
module.exports = {
4142
title: "Bandwidth API Docs",
@@ -174,11 +175,10 @@ module.exports = {
174175
globalSpec_v2: YAML.parse(globalSpec_v2),
175176
globalSpec_v3: YAML.parse(globalSpec_v3),
176177
globalSpec_beta: YAML.parse(globalSpec_beta),
178+
identitySpec: YAML.parse(identitySpec),
179+
identitySpecLink: `${customConfig.dashNotificationsSpecLink}`,
177180
insightsSpec: YAML.parse(insightsSpec),
178181
insightsSpecLink: `${customConfig.insightsSpecLink}`,
179-
/**
180-
* identitySpec: YAML.parse(identitySpec),
181-
*/
182182

183183
blogPosts: blogPosts,
184184

site/src/pages/apis/identity.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import React from "react";
2+
import Layout from "@theme/Layout";
3+
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
4+
import ApiReference from "@site/src/components/ApiReference";
5+
6+
export default function ApiReferencePage() {
7+
const { siteConfig } = useDocusaurusContext();
8+
return (
9+
<Layout
10+
title={`Insights API Reference`}
11+
description="Account metrics and information. Everything you'll need to start working with our Insights API."
12+
keywords="Bandwidth,API,Insights,Metrics"
13+
>
14+
<ApiReference
15+
spec={siteConfig.customFields.identitySpec}
16+
color={siteConfig.customFields.bwBlue}
17+
downloadDefinitionUrl={siteConfig.customFields.identitySpecLink}
18+
/>
19+
</Layout>
20+
);
21+
}

0 commit comments

Comments
 (0)