update openapi.yaml
This commit is contained in:
parent
80dbdb3e4b
commit
9dca46ea66
@ -73,7 +73,49 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$ref: '#/components/schemas/Error'
|
||||||
|
|
||||||
/repos/{id}:
|
/repo/{id}:
|
||||||
|
get:
|
||||||
|
summary: Get the configuration of a specific repository
|
||||||
|
operationId: getRepo
|
||||||
|
parameters:
|
||||||
|
- in: path
|
||||||
|
name: id
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
description: Repository ID
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: Repository configuration retrieved successfully
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/RepositoryConfig'
|
||||||
|
'400':
|
||||||
|
description: Bad Request
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Error'
|
||||||
|
'401':
|
||||||
|
description: Unauthorised
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Error'
|
||||||
|
'404':
|
||||||
|
description: Repository not found
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Error'
|
||||||
|
'500':
|
||||||
|
description: Internal server error
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Error'
|
||||||
|
|
||||||
put:
|
put:
|
||||||
summary: Configure a repository for MOLCI
|
summary: Configure a repository for MOLCI
|
||||||
operationId: configureRepo
|
operationId: configureRepo
|
||||||
|
|||||||
40
server/src/types/openapi.d.ts
vendored
40
server/src/types/openapi.d.ts
vendored
@ -68,6 +68,21 @@ declare namespace Paths {
|
|||||||
export type $500 = Components.Schemas.Error;
|
export type $500 = Components.Schemas.Error;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
namespace GetRepo {
|
||||||
|
namespace Parameters {
|
||||||
|
export type Id = string;
|
||||||
|
}
|
||||||
|
export interface PathParameters {
|
||||||
|
id: Parameters.Id;
|
||||||
|
}
|
||||||
|
namespace Responses {
|
||||||
|
export type $200 = Components.Schemas.RepositoryConfig;
|
||||||
|
export type $400 = Components.Schemas.Error;
|
||||||
|
export type $401 = Components.Schemas.Error;
|
||||||
|
export type $404 = Components.Schemas.Error;
|
||||||
|
export type $500 = Components.Schemas.Error;
|
||||||
|
}
|
||||||
|
}
|
||||||
namespace ListAvailableRepos {
|
namespace ListAvailableRepos {
|
||||||
namespace Responses {
|
namespace Responses {
|
||||||
export type $200 = Components.Schemas.Repository[];
|
export type $200 = Components.Schemas.Repository[];
|
||||||
@ -130,7 +145,30 @@ export interface Operations {
|
|||||||
| Paths.ListConfiguredRepos.Responses.$500;
|
| Paths.ListConfiguredRepos.Responses.$500;
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* PUT /repos/{id}
|
* GET /repo/{id}
|
||||||
|
*/
|
||||||
|
["getRepo"]: {
|
||||||
|
requestBody: any;
|
||||||
|
params: Paths.GetRepo.PathParameters;
|
||||||
|
query: UnknownParams;
|
||||||
|
headers: UnknownParams;
|
||||||
|
cookies: UnknownParams;
|
||||||
|
context: Context<
|
||||||
|
any,
|
||||||
|
Paths.GetRepo.PathParameters,
|
||||||
|
UnknownParams,
|
||||||
|
UnknownParams,
|
||||||
|
UnknownParams
|
||||||
|
>;
|
||||||
|
response:
|
||||||
|
| Paths.GetRepo.Responses.$200
|
||||||
|
| Paths.GetRepo.Responses.$400
|
||||||
|
| Paths.GetRepo.Responses.$401
|
||||||
|
| Paths.GetRepo.Responses.$404
|
||||||
|
| Paths.GetRepo.Responses.$500;
|
||||||
|
};
|
||||||
|
/**
|
||||||
|
* PUT /repo/{id}
|
||||||
*/
|
*/
|
||||||
["configureRepo"]: {
|
["configureRepo"]: {
|
||||||
requestBody: Paths.ConfigureRepo.RequestBody;
|
requestBody: Paths.ConfigureRepo.RequestBody;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user