File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "openapi" : " 3.1.0" ,
3+ "info" : {
4+ "title" : " Test Paginated Response" ,
5+ "version" : " 1.0.0"
6+ },
7+ "components" : {
8+ "schemas" : {
9+ "PaginatedResponse" : {
10+ "type" : " object" ,
11+ "properties" : {
12+ "meta" : {
13+ "type" : " object" ,
14+ "properties" : {
15+ "page" : { "type" : " number" },
16+ "limit" : { "type" : " number" },
17+ "total" : { "type" : " number" },
18+ "totalPages" : { "type" : " number" }
19+ }
20+ }
21+ }
22+ },
23+ "RepositorySecret" : {
24+ "type" : " object" ,
25+ "properties" : {
26+ "id" : { "type" : " number" },
27+ "name" : { "type" : " string" },
28+ "createdAt" : { "format" : " date-time" , "type" : " string" },
29+ "updatedAt" : { "format" : " date-time" , "type" : " string" }
30+ },
31+ "required" : [" id" , " name" , " createdAt" , " updatedAt" ]
32+ }
33+ }
34+ },
35+ "paths" : {
36+ "/secrets" : {
37+ "get" : {
38+ "operationId" : " listSecrets" ,
39+ "responses" : {
40+ "200" : {
41+ "description" : " OK" ,
42+ "content" : {
43+ "application/json" : {
44+ "schema" : {
45+ "title" : " PaginatedResponseRepositorySecret" ,
46+ "allOf" : [
47+ { "$ref" : " #/components/schemas/PaginatedResponse" },
48+ {
49+ "properties" : {
50+ "data" : {
51+ "type" : " array" ,
52+ "items" : { "$ref" : " #/components/schemas/RepositorySecret" }
53+ }
54+ }
55+ }
56+ ]
57+ }
58+ }
59+ }
60+ }
61+ }
62+ }
63+ },
64+ "/secrets/{id}" : {
65+ "post" : {
66+ "operationId" : " createSecret" ,
67+ "responses" : {
68+ "201" : {
69+ "description" : " Created" ,
70+ "content" : {
71+ "application/json" : {
72+ "schema" : { "$ref" : " #/components/schemas/RepositorySecret" }
73+ }
74+ }
75+ }
76+ }
77+ }
78+ }
79+ }
80+ }
You can’t perform that action at this time.
0 commit comments