Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
26 changes: 15 additions & 11 deletions portals/publisher/src/main/webapp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions portals/publisher/src/main/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"test:ci2": "CI=true jest --silent --ci --watchAll=false --watch=false --coverage --coverageReporters=cobertura",
"test": "DEBUG_PRINT_LIMIT=9000 jest --watch",
"test:coverage": "jest --silent --coverage .; python3 -m http.server -d coverage/",
"build:prod": "cross-env NODE_ENVS=production; npm run i18n:en && rimraf site/public/dist/ && NODE_OPTIONS=--max_old_space_size=4096 webpack --mode production --stats=errors-only",
"build:dev": "NODE_ENV=development && npm run i18n:en && rimraf site/public/dist/ && webpack --mode development --watch",
"analysis": "NODE_ENVS=analysis NODE_OPTIONS=--max_old_space_size=8172 webpack --mode production --progress",
"build:prod": "cross-env NODE_ENVS=production npm run i18n:en && rimraf site/public/dist/ && cross-env NODE_OPTIONS=--max_old_space_size=4096 webpack --mode production --stats=errors-only",
"build:dev": "cross-env NODE_ENV=development npm run i18n:en && rimraf site/public/dist/ && webpack --mode development --watch",
"analysis": "cross-env NODE_ENVS=analysis NODE_OPTIONS=--max_old_space_size=8172 webpack --mode production --progress",
"lint": "eslint --ignore-pattern '*.test.js' --ignore-pattern '*.test.jsx' --quiet -c .eslintrc.js --ext .jsx,.js source",
"i18n": "formatjs extract 'source/src/app/**/*.{jsx,tsx}' --throws --out-file site/public/locales/raw.en.json --id-interpolation-pattern '[sha512:contenthash:base64:6]'",
"extract-i18n": "formatjs extract",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2004,6 +2004,7 @@
"Apis.Listing.ApiThumb.version": "Version",
"Apis.Listing.SampleAPI.SampleAPI.ai.api.create.title": "Create AI API",
"Apis.Listing.SampleAPI.SampleAPI.ai.api.import.content": "Create AI APIs by importing service provider APIs",
"Apis.Listing.SampleAPI.SampleAPI.back.to.gateways": "Back to Gateway Selection",
"Apis.Listing.SampleAPI.SampleAPI.back.to.listing": "Back to API Listing",
"Apis.Listing.SampleAPI.SampleAPI.create.new": "Let’s get started!",
"Apis.Listing.SampleAPI.SampleAPI.create.new.description": "Choose your option to create an API",
Expand Down Expand Up @@ -2079,6 +2080,7 @@
"Apis.Listing.components.TopMenu.create.an.api.product": "Create API Product",
"Apis.Listing.components.TopMenu.create.api": "Create API",
"Apis.Listing.components.TopMenu.create.api.with.ai": "Create API with AI",
"Apis.Listing.components.TopMenu.discover.apis.tooltip": "Discover and import APIs from your third party gateways",
"Apis.Listing.components.TopMenu.displaying": "Total:",
"Apis.Listing.components.TopMenu.mcp.server.singular": "MCP Server",
"Apis.Listing.components.TopMenu.mcp.servers": "MCP Servers",
Expand Down Expand Up @@ -2399,6 +2401,8 @@
"Publisher.Landing.create.api.product.button": "Create API Product",
"Publisher.Landing.create.mcp.button": "Create MCP Server",
"Publisher.Landing.description": "Let's get started!",
"Publisher.Landing.discover.apis.button": "Discover APIs",
"Publisher.Landing.discover.apis.card.title": "Discover APIs",
"Publisher.Landing.error.title": "Error Loading Data",
"Publisher.Landing.mcpServers.section.title": "MCP Servers",
"Publisher.Landing.no.api.products.message.line1": "No API Products found.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ import { Route, Switch, Redirect } from 'react-router-dom';
import Progress from 'AppComponents/Shared/Progress';
import AuthManager from 'AppData/AuthManager';
import MCPRouteGuard from 'AppComponents/Shared/MCPRouteGuard';
import FederatedAPIDiscoveryRouteGuard from 'AppComponents/Shared/FederatedAPIDiscoveryRouteGuard';

import Listing from './Listing/Listing';
import APICreateWithAI from './Create/CreateAPIWithAI/APICreateWithAI';
import DiscoverAPIs from './Discover/DiscoverAPIs';
import DiscoveryResults from './Discover/DiscoveryResults';

/* if needs to pre fetch use 'webpackPrefetch: true' */

Expand Down Expand Up @@ -58,21 +61,21 @@ const Apis = () => {
<Route
exact
path='/apis'
key={Date.now()}
key='apis'
render={(props) => <Listing {...props} isAPIProduct={false} />}
/>
<Route
exact
path='/api-products'
key={Date.now()}
key='api-products'
render={(props) => {
return <Listing {...props} isAPIProduct />;
}}
/>
<Route
exact
path='/mcp-servers'
key={Date.now()}
key='mcp-servers'
render={(props) => (
<MCPRouteGuard>
<Listing {...props} isMCPServer />
Expand All @@ -82,9 +85,30 @@ const Apis = () => {
<Route
exact
path='/search'
key={Date.now()}
key='search'
render={(props) => <Listing {...props} isAPIProduct={false} />}
/>
<Route
exact
path='/apis/discover'
key='apis-discover'
render={(props) => (
<FederatedAPIDiscoveryRouteGuard>
<DiscoverAPIs {...props} />
</FederatedAPIDiscoveryRouteGuard>
)}
/>
<Route
exact
path='/apis/discover/apis'
key='apis-discover-apis'
render={(props) => (
<FederatedAPIDiscoveryRouteGuard>
<DiscoveryResults {...props} />
</FederatedAPIDiscoveryRouteGuard>
)}
/>

<Route path='/apis/create' component={DeferredAPICreateRoutes} />
<Route path='/apis/design-assistant' component={DefferedAIApiCreateRoutes} />
<Route
Expand All @@ -97,8 +121,8 @@ const Apis = () => {
}
}}
/>
<Route
path='/mcp-servers/create'
<Route
path='/mcp-servers/create'
render={(props) => (
<MCPRouteGuard>
<DeferredAPICreateRoutes {...props} />
Expand Down
Loading