Skip to content

Commit

Permalink
task: update the openapi definition and delete the product pages (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
Co-authored-by: github-merge-queue[bot] <github-merge-queue[bot]@users.noreply.github.com>
  • Loading branch information
carlosthe19916 and github-merge-queue[bot] authored Oct 31, 2024
1 parent cc0e65b commit 11c1ea4
Show file tree
Hide file tree
Showing 12 changed files with 1,189 additions and 1,890 deletions.
979 changes: 504 additions & 475 deletions client/openapi/trustd.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions client/src/app/api/rest.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios, { AxiosRequestConfig } from "axios";

import { FORM_DATA_FILE_KEY } from "@app/Constants";
import { AdvisoryDetails, SbomDetails } from "@app/client";
import { AdvisoryDetails, IngestResult } from "@app/client";
import { serializeRequestParamsForHub } from "@app/hooks/table-controls/getHubRequestParams";

import { HubPaginatedResult, HubRequestParams } from "./models";
Expand Down Expand Up @@ -65,7 +65,7 @@ export const uploadAdvisory = (

export const uploadSbom = (formData: FormData, config?: AxiosRequestConfig) => {
const file = formData.get(FORM_DATA_FILE_KEY) as File;
return axios.post<SbomDetails>(`${SBOMS}`, file, {
return axios.post<IngestResult>(`${SBOMS}`, file, {
...config,
headers: { "Content-Type": getContentTypeFromFile(file) },
});
Expand Down
Loading

0 comments on commit 11c1ea4

Please sign in to comment.