Skip to content

Commit

Permalink
generateTypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
choucw045 committed Jan 8, 2025
1 parent a2060f1 commit e8d3a07
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ export class RestNotebookControllerService {
}
/**
* @param notebook
* @returns Note OK
* @returns string OK
* @throws ApiError
*/
public getNotes(
public downloadNotebookForObsidian(
notebook: number,
): CancelablePromise<Array<Note>> {
): CancelablePromise<string> {
return this.httpRequest.request({
method: 'GET',
url: '/api/notebooks/{notebook}/notes',
url: '/api/notebooks/{notebook}/obsidian',
path: {
'notebook': notebook,
},
Expand All @@ -192,15 +192,15 @@ export class RestNotebookControllerService {
}
/**
* @param notebook
* @returns BareNote OK
* @returns Note OK
* @throws ApiError
*/
public downloadNotebookDump(
public getNotes(
notebook: number,
): CancelablePromise<Array<BareNote>> {
): CancelablePromise<Array<Note>> {
return this.httpRequest.request({
method: 'GET',
url: '/api/notebooks/{notebook}/dump',
url: '/api/notebooks/{notebook}/notes',
path: {
'notebook': notebook,
},
Expand All @@ -211,15 +211,15 @@ export class RestNotebookControllerService {
}
/**
* @param notebook
* @returns string OK
* @returns BareNote OK
* @throws ApiError
*/
public downloadForObsidian(
public downloadNotebookDump(
notebook: number,
): CancelablePromise<string> {
): CancelablePromise<Array<BareNote>> {
return this.httpRequest.request({
method: 'GET',
url: '/api/notebooks/{notebook}/download-zip',
url: '/api/notebooks/{notebook}/dump',
path: {
'notebook': notebook,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export class RestObsidianImportControllerService {
path: {
'parentNoteId': parentNoteId,
},
formData: requestBody,
mediaType: 'multipart/form-data',
body: requestBody,
mediaType: 'application/json',
errors: {
500: `Internal Server Error`,
},
Expand Down

0 comments on commit e8d3a07

Please sign in to comment.