diff --git a/apps/api/src/routes/internal/index.ts b/apps/api/src/routes/internal/index.ts index 1b3e5107f..6faa28871 100644 --- a/apps/api/src/routes/internal/index.ts +++ b/apps/api/src/routes/internal/index.ts @@ -1,8 +1,8 @@ -import gpu from "./gpu"; -import gpuModels from "./gpuModels"; -import gpuPrices from "./gpuPrices"; -import leasesDuration from "./leasesDuration"; -import providerDashboard from "./providerDashboard"; -import providerVersions from "./providerVersions"; +import gpu from "../v1/gpu"; +import gpuModels from "../v1/gpuModels"; +import gpuPrices from "../v1/gpuPrices"; +import leasesDuration from "../v1/leasesDuration"; +import providerDashboard from "../v1/providerDashboard"; +import providerVersions from "../v1/providerVersions"; export default [providerVersions, gpu, leasesDuration, gpuModels, gpuPrices, providerDashboard]; diff --git a/apps/api/src/routes/internal/gpu.ts b/apps/api/src/routes/v1/gpu.ts similarity index 99% rename from apps/api/src/routes/internal/gpu.ts rename to apps/api/src/routes/v1/gpu.ts index 5239b89d3..7ee7b9201 100644 --- a/apps/api/src/routes/internal/gpu.ts +++ b/apps/api/src/routes/v1/gpu.ts @@ -12,6 +12,7 @@ const route = createRoute({ method: "get", path: "/gpu", summary: "Get a list of gpu models and their availability.", + tags: ["Gpu"], request: { query: z.object({ provider: z.string().optional(), diff --git a/apps/api/src/routes/internal/gpuModels.ts b/apps/api/src/routes/v1/gpuModels.ts similarity index 99% rename from apps/api/src/routes/internal/gpuModels.ts rename to apps/api/src/routes/v1/gpuModels.ts index aae1678ff..b2d1acabe 100644 --- a/apps/api/src/routes/internal/gpuModels.ts +++ b/apps/api/src/routes/v1/gpuModels.ts @@ -10,6 +10,7 @@ const route = createRoute({ path: "/gpu-models", summary: "Get a list of gpu models per vendor. Based on the content from https://raw.githubusercontent.com/akash-network/provider-configs/main/devices/pcie/gpus.json.", + tags: ["Gpu"], responses: { 200: { description: "List of gpu models per.", diff --git a/apps/api/src/routes/internal/gpuPrices.ts b/apps/api/src/routes/v1/gpuPrices.ts similarity index 99% rename from apps/api/src/routes/internal/gpuPrices.ts rename to apps/api/src/routes/v1/gpuPrices.ts index 1a915674c..c0a06aaa4 100644 --- a/apps/api/src/routes/internal/gpuPrices.ts +++ b/apps/api/src/routes/v1/gpuPrices.ts @@ -18,6 +18,7 @@ const route = createRoute({ method: "get", path: "/gpu-prices", summary: "Get a list of gpu models with their availability and pricing.", + tags: ["Gpu"], responses: { 200: { description: "List of gpu models with their availability and pricing.", diff --git a/apps/api/src/routes/v1/index.ts b/apps/api/src/routes/v1/index.ts index eed2e40a1..452b1431f 100644 --- a/apps/api/src/routes/v1/index.ts +++ b/apps/api/src/routes/v1/index.ts @@ -24,7 +24,11 @@ import versionSandbox from "./version/sandbox"; import versionTestnet from "./version/testnet"; import auditors from "./auditors"; import dashboardData from "./dashboardData"; +import gpu from "./gpu"; +import gpuModels from "./gpuModels"; +import gpuPrices from "./gpuPrices"; import graphData from "./graphData"; +import leasesDuration from "./leasesDuration"; import marketData from "./marketData"; import networkCapacity from "./networkCapacity"; import predictedBlockDate from "./predictedBlockDate"; @@ -32,8 +36,10 @@ import predictedDateHeight from "./predictedDateHeight"; import pricing from "./pricing"; import providerActiveLeasesGraphData from "./providerActiveLeasesGraphData"; import providerAttributesSchema from "./providerAttributesSchema"; +import providerDashboard from "./providerDashboard"; import providerGraphData from "./providerGraphData"; import providerRegions from "./providerRegions"; +import providerVersions from "./providerVersions"; import trialProviders from "./trialProviders"; export default [ @@ -73,5 +79,11 @@ export default [ providerGraphData, graphData, providerActiveLeasesGraphData, - trialProviders + trialProviders, + leasesDuration, + providerDashboard, + providerVersions, + gpu, + gpuModels, + gpuPrices ]; diff --git a/apps/api/src/routes/internal/leasesDuration.ts b/apps/api/src/routes/v1/leasesDuration.ts similarity index 99% rename from apps/api/src/routes/internal/leasesDuration.ts rename to apps/api/src/routes/v1/leasesDuration.ts index cf34b2cae..67dec3bab 100644 --- a/apps/api/src/routes/internal/leasesDuration.ts +++ b/apps/api/src/routes/v1/leasesDuration.ts @@ -10,6 +10,7 @@ const route = createRoute({ method: "get", path: "/leases-duration/{owner}", summary: "Get leases durations.", + tags: ["Analytics"], request: { params: z.object({ owner: z.string().openapi({ example: openApiExampleAddress }) diff --git a/apps/api/src/routes/internal/providerDashboard.ts b/apps/api/src/routes/v1/providerDashboard.ts similarity index 99% rename from apps/api/src/routes/internal/providerDashboard.ts rename to apps/api/src/routes/v1/providerDashboard.ts index 2dc60492a..4ecae00cc 100644 --- a/apps/api/src/routes/internal/providerDashboard.ts +++ b/apps/api/src/routes/v1/providerDashboard.ts @@ -11,6 +11,7 @@ const route = createRoute({ method: "get", path: "/provider-dashboard/{owner}", summary: "Get dashboard data for provider console.", + tags: ["Providers"], request: { params: z.object({ owner: z.string().openapi({ example: openApiExampleProviderAddress }) diff --git a/apps/api/src/routes/internal/providerVersions.ts b/apps/api/src/routes/v1/providerVersions.ts similarity index 99% rename from apps/api/src/routes/internal/providerVersions.ts rename to apps/api/src/routes/v1/providerVersions.ts index 2f70bc779..0ea51d35b 100644 --- a/apps/api/src/routes/internal/providerVersions.ts +++ b/apps/api/src/routes/v1/providerVersions.ts @@ -12,6 +12,7 @@ const route = createRoute({ method: "get", path: "/provider-versions", summary: "Get providers grouped by version.", + tags: ["Providers"], responses: { 200: { description: "List of providers grouped by version.", diff --git a/package-lock.json b/package-lock.json index b77413f29..7511a84d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,7 +31,7 @@ }, "apps/api": { "name": "@akashnetwork/console-api", - "version": "2.39.0", + "version": "2.41.1", "license": "Apache-2.0", "dependencies": { "@akashnetwork/akash-api": "^1.3.0",