Repository navigation
Expand file tree
/
Copy pathmain.jsonnet
More file actions
80 lines (79 loc) · 2.54 KB
/
Copy pathmain.jsonnet
File metadata and controls
80 lines (79 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
local securitySchemes = {
BearerAuth: {
type: 'http',
scheme: 'bearer',
bearerFormat: 'JWT',
description: 'Session-based authentication using Better Auth',
},
ApiKeyAuth: {
type: 'apiKey',
'in': 'header',
name: 'X-API-Key',
description: 'API key authentication using X-API-Key header',
},
};
{
openapi: '3.0.0',
info: {
title: 'Ctrlplane API',
version: '1.0.0',
description: 'OpenAPI schemas for Ctrlplane API',
},
servers: [
{
url: 'http://localhost:3001/api',
description: 'Development server',
},
],
security: [
{
ApiKeyAuth: [],
},
{
BearerAuth: [],
},
],
paths: (import 'paths/workspaces.jsonnet') +
(import 'paths/resource-providers.jsonnet') +
(import 'paths/resources.jsonnet') +
(import 'paths/systems.jsonnet') +
(import 'paths/deployments.jsonnet') +
(import 'paths/deploymentversions.jsonnet') +
(import 'paths/deploymentvariables.jsonnet') +
(import 'paths/environments.jsonnet') +
(import 'paths/policies.jsonnet') +
(import 'paths/userapprovalrecords.jsonnet') +
(import 'paths/relationship-rules.jsonnet') +
(import 'paths/jobs.jsonnet') +
(import 'paths/release-targets.jsonnet') +
(import 'paths/release.jsonnet') +
(import 'paths/job-agents.jsonnet') +
(import 'paths/workflows.jsonnet') +
(import 'paths/variablesets.jsonnet') +
(import 'paths/secret-providers.jsonnet'),
components: {
parameters: {},
securitySchemes: securitySchemes,
schemas:
(import 'schemas/core.jsonnet') +
(import 'schemas/errors.jsonnet') +
(import 'schemas/workspace.jsonnet') +
(import 'schemas/resources.jsonnet') +
(import 'schemas/deployments.jsonnet') +
(import 'schemas/deploymentversions.jsonnet') +
(import 'schemas/deploymentvariables.jsonnet') +
(import 'schemas/environments.jsonnet') +
(import 'schemas/systems.jsonnet') +
(import 'schemas/policies.jsonnet') +
(import 'schemas/jobs.jsonnet') +
(import 'schemas/userapprovalrecord.jsonnet') +
(import 'schemas/resource-provider.jsonnet') +
(import 'schemas/relationship-rules.jsonnet') +
(import 'schemas/release.jsonnet') +
(import 'schemas/job-agents.jsonnet') +
(import 'schemas/verifications.jsonnet') +
(import 'schemas/workflows.jsonnet') +
(import 'schemas/variablesets.jsonnet') +
(import 'schemas/secret-providers.jsonnet'),
},
}