-
Notifications
You must be signed in to change notification settings - Fork 10
Add format as an optional param to submitGuestbook for download use cases #435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,10 +7,13 @@ export class AccessRepository extends ApiRepository implements IAccessRepository | |||||
|
|
||||||
| public async submitGuestbookForDatafileDownload( | ||||||
| fileId: number | string, | ||||||
| guestbookResponse: GuestbookResponseDTO | ||||||
| guestbookResponse: GuestbookResponseDTO, | ||||||
| format?: string | ||||||
| ): Promise<string> { | ||||||
| const endpoint = this.buildApiEndpoint(`${this.accessResourceName}/datafile`, undefined, fileId) | ||||||
| return this.doPost(endpoint, guestbookResponse, { signed: true }) | ||||||
| const queryParams = format ? { signed: true, format } : { signed: true } | ||||||
|
|
||||||
| return this.doPost(endpoint, guestbookResponse, queryParams) | ||||||
| .then((response) => { | ||||||
| const signedUrl = response.data.data.signedUrl | ||||||
| return signedUrl | ||||||
|
|
@@ -22,15 +25,18 @@ export class AccessRepository extends ApiRepository implements IAccessRepository | |||||
|
|
||||||
| public async submitGuestbookForDatafilesDownload( | ||||||
| fileIds: Array<number>, | ||||||
|
||||||
| fileIds: Array<number>, | |
| fileIds: string | Array<number | string>, |
Uh oh!
There was an error while loading. Please reload this page.