Skip to content
Snippets Groups Projects
Commit 559c1d6a authored by Petar Hristov's avatar Petar Hristov :speech_balloon: Committed by Benedikt Heinrichs
Browse files

New: Get Project by Slug

parent c270c1d1
No related branches found
No related tags found
2 merge requests!24Uiv2,!17New: Get Project by Slug
Showing
with 104 additions and 20 deletions
......@@ -4,7 +4,7 @@
* Coscine.Api.Resources
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.3.0
* The version of the OpenAPI document: 2.5.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.0
* The version of the OpenAPI document: 1.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.0
* The version of the OpenAPI document: 1.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp25.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Search".replace(/\/+$/, "");
/**
*
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.0
* The version of the OpenAPI document: 1.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.0
* The version of the OpenAPI document: 1.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Search
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.0
* The version of the OpenAPI document: 1.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
base.ts
common.ts
......
......@@ -121,6 +121,25 @@ export interface CreatedApiTokenObjectAllOf {
*/
token?: string | null;
}
/**
* Contains the minimum and maximum token validity in days from today.
* @export
* @interface TokenValidityObject
*/
export interface TokenValidityObject {
/**
* Object holding the specified token minumum and maximum validity in days from today.
* @type {number}
* @memberof TokenValidityObject
*/
minDays?: number;
/**
*
* @type {number}
* @memberof TokenValidityObject
*/
maxDays?: number;
}
/**
* TokenApi - axios parameter creator
......@@ -167,6 +186,39 @@ export const TokenApiAxiosParamCreator = function (configuration?: Configuration
options: localVarRequestOptions,
};
},
/**
*
* @summary Get the specified token minumum and maximum validity in days.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
tokenGetTokenValidityBounds: async (options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/Token/getValidity`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
// authentication JWT token required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Get the specific token values.
......@@ -295,6 +347,16 @@ export const TokenApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.tokenAddToken(addApiTokenParameter, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Get the specified token minumum and maximum validity in days.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async tokenGetTokenValidityBounds(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TokenValidityObject>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.tokenGetTokenValidityBounds(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
* @summary Get the specific token values.
......@@ -347,6 +409,15 @@ export const TokenApiFactory = function (configuration?: Configuration, basePath
tokenAddToken(addApiTokenParameter: AddApiTokenParameter, options?: any): AxiosPromise<CreatedApiTokenObject> {
return localVarFp.tokenAddToken(addApiTokenParameter, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get the specified token minumum and maximum validity in days.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
tokenGetTokenValidityBounds(options?: any): AxiosPromise<TokenValidityObject> {
return localVarFp.tokenGetTokenValidityBounds(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Get the specific token values.
......@@ -398,6 +469,17 @@ export class TokenApi extends BaseAPI {
return TokenApiFp(this.configuration).tokenAddToken(addApiTokenParameter, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get the specified token minumum and maximum validity in days.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TokenApi
*/
public tokenGetTokenValidityBounds(options?: any) {
return TokenApiFp(this.configuration).tokenGetTokenValidityBounds(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Get the specific token values.
......
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Token".replace(/\/+$/, "");
/**
*
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.4.3
* The version of the OpenAPI document: 2.5.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.4.3
* The version of the OpenAPI document: 2.5.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.Tree".replace(/\/+$/, "");
/**
*
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.4.3
* The version of the OpenAPI document: 2.5.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.4.3
* The version of the OpenAPI document: 2.5.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.Tree
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.4.3
* The version of the OpenAPI document: 2.5.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
base.ts
common.ts
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.1.3
* The version of the OpenAPI document: 2.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.1.3
* The version of the OpenAPI document: 2.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......@@ -18,7 +18,7 @@ import { Configuration } from "./configuration";
// @ts-ignore
import globalAxios, { AxiosPromise, AxiosInstance } from 'axios';
export const BASE_PATH = "https://d-sp23.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
export const BASE_PATH = "https://d-sp16.devlef.campus.rwth-aachen.de/coscine/api/Coscine.Api.User".replace(/\/+$/, "");
/**
*
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.1.3
* The version of the OpenAPI document: 2.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.1.3
* The version of the OpenAPI document: 2.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
......@@ -4,7 +4,7 @@
* Coscine.Api.User
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 2.1.3
* The version of the OpenAPI document: 2.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment