Skip to content

Commit

Permalink
update endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 committed Aug 25, 2023
1 parent 002c273 commit c87c7c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions client/src/app/api/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,6 @@ export const getApplicationImports = (
.get(`${APP_IMPORT}?importSummary.id=${importSummaryID}&isValid=${isValid}`)
.then((response) => response.data);

export const getApplicationAnalysis = (
applicationId: number,
format: "json" | "yaml"
): Promise<string> => {
const headers = format === "yaml" ? yamlHeaders : jsonHeaders;
return axios
.get<string>(`${APPLICATIONS}/${applicationId}/analysis`, headers)
.then((response) => response.data);
};

export function getTaskById(id: number, format: "json"): Promise<Task>;
export function getTaskById(id: number, format: "yaml"): Promise<string>;
export function getTaskById(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function DownloadButton({

try {
const response = await fetch(
`${APPLICATIONS}/${application?.id}/analysis`,
`${APPLICATIONS}/${application?.id}/analysis/report`,
{
headers: {
Accept: acceptHeader,
Expand Down

0 comments on commit c87c7c0

Please sign in to comment.