Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-client
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
libraries
api-client
Commits
a92f576f
Commit
a92f576f
authored
3 years ago
by
Benedikt Heinrichs
Committed by
Petar Hristov
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update: Multiple MimeType Support
parent
47261aed
No related branches found
No related tags found
2 merge requests
!32
Release: Sprint/2022 10 :robot:
,
!31
Update: Multiple MimeType Support
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Coscine.Api.Tree/api.ts
+30
-14
30 additions, 14 deletions
src/Coscine.Api.Tree/api.ts
src/Coscine.Api.Tree/base.ts
+1
-1
1 addition, 1 deletion
src/Coscine.Api.Tree/base.ts
with
31 additions
and
15 deletions
src/Coscine.Api.Tree/api.ts
+
30
−
14
View file @
a92f576f
...
...
@@ -33,10 +33,11 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeGetMetadataWithParameter
:
async
(
resourceId
:
string
,
path
?:
string
,
options
:
any
=
{}):
Promise
<
RequestArgs
>
=>
{
treeGetMetadataWithParameter
:
async
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
:
any
=
{}):
Promise
<
RequestArgs
>
=>
{
// verify required parameter 'resourceId' is not null or undefined
assertParamExists
(
'
treeGetMetadataWithParameter
'
,
'
resourceId
'
,
resourceId
)
const
localVarPath
=
`/Tree/{resourceId}`
...
...
@@ -59,6 +60,10 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
localVarQueryParameter
[
'
path
'
]
=
path
;
}
if
(
mimeType
!==
undefined
)
{
localVarQueryParameter
[
'
mimeType
'
]
=
mimeType
;
}
setSearchParams
(
localVarUrlObj
,
localVarQueryParameter
,
options
.
query
);
...
...
@@ -75,10 +80,11 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeStoreMetadataForFileWithParameter
:
async
(
resourceId
:
string
,
path
?:
string
,
options
:
any
=
{}):
Promise
<
RequestArgs
>
=>
{
treeStoreMetadataForFileWithParameter
:
async
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
:
any
=
{}):
Promise
<
RequestArgs
>
=>
{
// verify required parameter 'resourceId' is not null or undefined
assertParamExists
(
'
treeStoreMetadataForFileWithParameter
'
,
'
resourceId
'
,
resourceId
)
const
localVarPath
=
`/Tree/{resourceId}`
...
...
@@ -101,6 +107,10 @@ export const TreeApiAxiosParamCreator = function (configuration?: Configuration)
localVarQueryParameter
[
'
path
'
]
=
path
;
}
if
(
mimeType
!==
undefined
)
{
localVarQueryParameter
[
'
mimeType
'
]
=
mimeType
;
}
setSearchParams
(
localVarUrlObj
,
localVarQueryParameter
,
options
.
query
);
...
...
@@ -127,11 +137,12 @@ export const TreeApiFp = function(configuration?: Configuration) {
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async
treeGetMetadataWithParameter
(
resourceId
:
string
,
path
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
treeGetMetadataWithParameter
(
resourceId
,
path
,
options
);
async
treeGetMetadataWithParameter
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
treeGetMetadataWithParameter
(
resourceId
,
path
,
mimeType
,
options
);
return
createRequestFunction
(
localVarAxiosArgs
,
globalAxios
,
BASE_PATH
,
configuration
);
},
/**
...
...
@@ -139,11 +150,12 @@ export const TreeApiFp = function(configuration?: Configuration) {
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async
treeStoreMetadataForFileWithParameter
(
resourceId
:
string
,
path
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
treeStoreMetadataForFileWithParameter
(
resourceId
,
path
,
options
);
async
treeStoreMetadataForFileWithParameter
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
?:
any
):
Promise
<
(
axios
?:
AxiosInstance
,
basePath
?:
string
)
=>
AxiosPromise
<
any
>>
{
const
localVarAxiosArgs
=
await
localVarAxiosParamCreator
.
treeStoreMetadataForFileWithParameter
(
resourceId
,
path
,
mimeType
,
options
);
return
createRequestFunction
(
localVarAxiosArgs
,
globalAxios
,
BASE_PATH
,
configuration
);
},
}
...
...
@@ -161,22 +173,24 @@ export const TreeApiFactory = function (configuration?: Configuration, basePath?
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeGetMetadataWithParameter
(
resourceId
:
string
,
path
?:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
return
localVarFp
.
treeGetMetadataWithParameter
(
resourceId
,
path
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
treeGetMetadataWithParameter
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
return
localVarFp
.
treeGetMetadataWithParameter
(
resourceId
,
path
,
mimeType
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
},
/**
*
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
treeStoreMetadataForFileWithParameter
(
resourceId
:
string
,
path
?:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
return
localVarFp
.
treeStoreMetadataForFileWithParameter
(
resourceId
,
path
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
treeStoreMetadataForFileWithParameter
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
?:
any
):
AxiosPromise
<
any
>
{
return
localVarFp
.
treeStoreMetadataForFileWithParameter
(
resourceId
,
path
,
mimeType
,
options
).
then
((
request
)
=>
request
(
axios
,
basePath
));
},
};
};
...
...
@@ -193,12 +207,13 @@ export class TreeApi extends BaseAPI {
* @summary This method retrieves the metadata
* @param {string} resourceId Id of a resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TreeApi
*/
public
treeGetMetadataWithParameter
(
resourceId
:
string
,
path
?:
string
,
options
?:
any
)
{
return
TreeApiFp
(
this
.
configuration
).
treeGetMetadataWithParameter
(
resourceId
,
path
,
options
).
then
((
request
)
=>
request
(
this
.
axios
,
this
.
basePath
));
public
treeGetMetadataWithParameter
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
?:
any
)
{
return
TreeApiFp
(
this
.
configuration
).
treeGetMetadataWithParameter
(
resourceId
,
path
,
mimeType
,
options
).
then
((
request
)
=>
request
(
this
.
axios
,
this
.
basePath
));
}
/**
...
...
@@ -206,12 +221,13 @@ export class TreeApi extends BaseAPI {
* @summary This method stores the metadata of the file
* @param {string} resourceId Id of the resource
* @param {string} [path] Path to the file
* @param {string} [mimeType] Requested MimeType of the metadata
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TreeApi
*/
public
treeStoreMetadataForFileWithParameter
(
resourceId
:
string
,
path
?:
string
,
options
?:
any
)
{
return
TreeApiFp
(
this
.
configuration
).
treeStoreMetadataForFileWithParameter
(
resourceId
,
path
,
options
).
then
((
request
)
=>
request
(
this
.
axios
,
this
.
basePath
));
public
treeStoreMetadataForFileWithParameter
(
resourceId
:
string
,
path
?:
string
,
mimeType
?:
string
,
options
?:
any
)
{
return
TreeApiFp
(
this
.
configuration
).
treeStoreMetadataForFileWithParameter
(
resourceId
,
path
,
mimeType
,
options
).
then
((
request
)
=>
request
(
this
.
axios
,
this
.
basePath
));
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Coscine.Api.Tree/base.ts
+
1
−
1
View file @
a92f576f
...
...
@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import
globalAxios
,
{
AxiosPromise
,
AxiosInstance
}
from
'
axios
'
;
export
const
BASE_PATH
=
"
https://d-sp
16
.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree
"
.
replace
(
/
\/
+$/
,
""
);
export
const
BASE_PATH
=
"
https://d-sp
23
.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree
"
.
replace
(
/
\/
+$/
,
""
);
/**
*
...
...
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
fd5bd268
·
3 years ago
mentioned in commit
fd5bd268
mentioned in commit fd5bd268f10d8bad6bd4dac44d2d94d9b45bd4e9
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment