@jpmorganchase/elemental-dev-portal 1.0.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- package/components/BranchSelector/BranchSelector.d.ts +7 -0
- package/components/BranchSelector/BranchSelector.spec.d.ts +15 -0
- package/components/BranchSelector/BranchSelector.stories.d.ts +29 -0
- package/components/DevPortalProvider/index.d.ts +7 -0
- package/components/Forbidden.d.ts +1 -0
- package/components/Loading.d.ts +1 -0
- package/components/NodeContent/NodeContent.d.ts +17 -0
- package/components/NodeContent/NodeContent.spec.d.ts +1 -0
- package/components/NodeContent/NodeContent.stories.d.ts +43 -0
- package/components/NotFound.d.ts +1 -0
- package/components/Search/Search.d.ts +13 -0
- package/components/Search/Search.stories.d.ts +33 -0
- package/components/TableOfContents/TableOfContents.d.ts +12 -0
- package/components/TableOfContents/TableOfContents.stories.d.ts +36 -0
- package/components/UpgradeToStarter.d.ts +1 -0
- package/consts.d.ts +28 -0
- package/containers/StoplightProject.d.ts +13 -0
- package/containers/StoplightProject.spec.d.ts +1 -0
- package/containers/StoplightProject.stories.d.ts +45 -0
- package/handlers/getBranches.d.ts +6 -0
- package/handlers/getNodeContent.d.ts +12 -0
- package/handlers/getNodes.d.ts +9 -0
- package/handlers/getTableOfContents.d.ts +7 -0
- package/handlers/getWorkspace.d.ts +6 -0
- package/hooks/useGetBranches.d.ts +3 -0
- package/hooks/useGetNodeContent.d.ts +5 -0
- package/hooks/useGetNodes.d.ts +7 -0
- package/hooks/useGetTableOfContents.d.ts +4 -0
- package/hooks/useGetWorkspace.d.ts +3 -0
- package/index.esm.js +682 -0
- package/index.js +726 -0
- package/index.mjs +682 -0
- package/package.json +17 -70
- package/styles.min.css +1 -0
- package/types.d.ts +65 -0
- package/version.d.ts +1 -0
- package/web-components/components.d.ts +1 -0
- package/web-components/index.d.ts +1 -0
- package/web-components.min.js +2 -0
- package/web-components.min.js.LICENSE.txt +187 -0
- package/.storybook/main.js +0 -1
- package/.storybook/manager.js +0 -1
- package/.storybook/preview.jsx +0 -46
- package/jest.config.js +0 -10
- package/src/__fixtures__/branches.json +0 -26
- package/src/__fixtures__/node-content.json +0 -257
- package/src/__fixtures__/table-of-contents.json +0 -144
- package/src/components/BranchSelector/BranchSelector.spec.tsx +0 -63
- package/src/components/BranchSelector/BranchSelector.stories.tsx +0 -41
- package/src/components/BranchSelector/BranchSelector.tsx +0 -50
- package/src/components/DevPortalProvider/index.tsx +0 -19
- package/src/components/Forbidden.tsx +0 -11
- package/src/components/Loading.tsx +0 -9
- package/src/components/NodeContent/NodeContent.spec.tsx +0 -54
- package/src/components/NodeContent/NodeContent.stories.tsx +0 -60
- package/src/components/NodeContent/NodeContent.tsx +0 -171
- package/src/components/NotFound.tsx +0 -11
- package/src/components/Search/Search.stories.tsx +0 -73
- package/src/components/Search/Search.tsx +0 -133
- package/src/components/TableOfContents/TableOfContents.stories.tsx +0 -54
- package/src/components/TableOfContents/TableOfContents.tsx +0 -51
- package/src/components/UpgradeToStarter.tsx +0 -22
- package/src/consts.ts +0 -32
- package/src/containers/StoplightProject.spec.tsx +0 -78
- package/src/containers/StoplightProject.stories.tsx +0 -28
- package/src/containers/StoplightProject.tsx +0 -213
- package/src/handlers/__tests__/getBranches.test.ts +0 -30
- package/src/handlers/__tests__/getNodeContent.test.ts +0 -35
- package/src/handlers/__tests__/getNodes.test.ts +0 -38
- package/src/handlers/__tests__/getTableOfContents.test.ts +0 -34
- package/src/handlers/__tests__/getWorkspace.test.ts +0 -30
- package/src/handlers/getBranches.ts +0 -27
- package/src/handlers/getNodeContent.ts +0 -53
- package/src/handlers/getNodes.ts +0 -69
- package/src/handlers/getTableOfContents.ts +0 -30
- package/src/handlers/getWorkspace.ts +0 -27
- package/src/hooks/__tests__/dataFetching.spec.tsx +0 -42
- package/src/hooks/useGetBranches.ts +0 -17
- package/src/hooks/useGetNodeContent.ts +0 -24
- package/src/hooks/useGetNodes.ts +0 -34
- package/src/hooks/useGetTableOfContents.ts +0 -15
- package/src/hooks/useGetWorkspace.tsx +0 -13
- package/src/styles.css +0 -1
- package/src/types.ts +0 -81
- package/src/version.ts +0 -2
- package/src/web-components/__stories__/StoplightProject.stories.tsx +0 -33
- package/src/web-components/components.ts +0 -17
- package/src/web-components/index.ts +0 -3
- package/tsconfig.build.json +0 -18
- package/tsconfig.json +0 -7
- package/web-components.config.js +0 -1
- /package/{src/components/BranchSelector/index.tsx → components/BranchSelector/index.d.ts} +0 -0
- /package/{src/components/NodeContent/index.tsx → components/NodeContent/index.d.ts} +0 -0
- /package/{src/components/Search/index.tsx → components/Search/index.d.ts} +0 -0
- /package/{src/components/TableOfContents/index.tsx → components/TableOfContents/index.d.ts} +0 -0
- /package/{src/index.ts → index.d.ts} +0 -0
@@ -0,0 +1,187 @@
|
|
1
|
+
/*
|
2
|
+
object-assign
|
3
|
+
(c) Sindre Sorhus
|
4
|
+
@license MIT
|
5
|
+
*/
|
6
|
+
|
7
|
+
/*!
|
8
|
+
Copyright (c) 2018 Jed Watson.
|
9
|
+
Licensed under the MIT License (MIT), see
|
10
|
+
http://jedwatson.github.io/classnames
|
11
|
+
*/
|
12
|
+
|
13
|
+
/*!
|
14
|
+
* Determine if an object is a Buffer
|
15
|
+
*
|
16
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
17
|
+
* @license MIT
|
18
|
+
*/
|
19
|
+
|
20
|
+
/*!
|
21
|
+
* EventEmitter v5.2.9 - git.io/ee
|
22
|
+
* Unlicense - http://unlicense.org/
|
23
|
+
* Oliver Caldwell - https://oli.me.uk/
|
24
|
+
* @preserve
|
25
|
+
*/
|
26
|
+
|
27
|
+
/*!
|
28
|
+
* Font Awesome Free 6.1.1 by @fontawesome - https://fontawesome.com
|
29
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
30
|
+
* Copyright 2022 Fonticons, Inc.
|
31
|
+
*/
|
32
|
+
|
33
|
+
/*!
|
34
|
+
* The buffer module from node.js, for the browser.
|
35
|
+
*
|
36
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
37
|
+
* @license MIT
|
38
|
+
*/
|
39
|
+
|
40
|
+
/*!
|
41
|
+
* URI.js - Mutating URLs
|
42
|
+
*
|
43
|
+
* Version: 1.19.11
|
44
|
+
*
|
45
|
+
* Author: Rodney Rehm
|
46
|
+
* Web: http://medialize.github.io/URI.js/
|
47
|
+
*
|
48
|
+
* Licensed under
|
49
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
50
|
+
*
|
51
|
+
*/
|
52
|
+
|
53
|
+
/*!
|
54
|
+
* URI.js - Mutating URLs
|
55
|
+
* IPv6 Support
|
56
|
+
*
|
57
|
+
* Version: 1.19.11
|
58
|
+
*
|
59
|
+
* Author: Rodney Rehm
|
60
|
+
* Web: http://medialize.github.io/URI.js/
|
61
|
+
*
|
62
|
+
* Licensed under
|
63
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
64
|
+
*
|
65
|
+
*/
|
66
|
+
|
67
|
+
/*!
|
68
|
+
* URI.js - Mutating URLs
|
69
|
+
* Second Level Domain (SLD) Support
|
70
|
+
*
|
71
|
+
* Version: 1.19.11
|
72
|
+
*
|
73
|
+
* Author: Rodney Rehm
|
74
|
+
* Web: http://medialize.github.io/URI.js/
|
75
|
+
*
|
76
|
+
* Licensed under
|
77
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
78
|
+
*
|
79
|
+
*/
|
80
|
+
|
81
|
+
/*!
|
82
|
+
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
83
|
+
*
|
84
|
+
* Copyright (c) 2014-2015, Jon Schlinkert.
|
85
|
+
* Licensed under the MIT License.
|
86
|
+
*/
|
87
|
+
|
88
|
+
/*! *****************************************************************************
|
89
|
+
Copyright (c) Microsoft Corporation.
|
90
|
+
|
91
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
92
|
+
purpose with or without fee is hereby granted.
|
93
|
+
|
94
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
95
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
96
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
97
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
98
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
99
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
100
|
+
PERFORMANCE OF THIS SOFTWARE.
|
101
|
+
***************************************************************************** */
|
102
|
+
|
103
|
+
/*! https://mths.be/punycode v1.4.0 by @mathias */
|
104
|
+
|
105
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
106
|
+
|
107
|
+
/**
|
108
|
+
* @license
|
109
|
+
* Lodash <https://lodash.com/>
|
110
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
111
|
+
* Released under MIT license <https://lodash.com/license>
|
112
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
113
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
114
|
+
*/
|
115
|
+
|
116
|
+
/**
|
117
|
+
* @license https://raw.githubusercontent.com/node-fetch/node-fetch/master/LICENSE.md
|
118
|
+
*
|
119
|
+
* The MIT License (MIT)
|
120
|
+
*
|
121
|
+
* Copyright (c) 2016 - 2020 Node Fetch Team
|
122
|
+
*
|
123
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
124
|
+
* of this software and associated documentation files (the "Software"), to deal
|
125
|
+
* in the Software without restriction, including without limitation the rights
|
126
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
127
|
+
* copies of the Software, and to permit persons to whom the Software is
|
128
|
+
* furnished to do so, subject to the following conditions:
|
129
|
+
*
|
130
|
+
* The above copyright notice and this permission notice shall be included in all
|
131
|
+
* copies or substantial portions of the Software.
|
132
|
+
*
|
133
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
134
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
135
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
136
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
137
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
138
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
139
|
+
* SOFTWARE.
|
140
|
+
*
|
141
|
+
* Extracted from https://github.com/node-fetch/node-fetch/blob/64c5c296a0250b852010746c76144cb9e14698d9/src/utils/form-data.js
|
142
|
+
*/
|
143
|
+
|
144
|
+
/** @license React v0.19.1
|
145
|
+
* scheduler.production.min.js
|
146
|
+
*
|
147
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
148
|
+
*
|
149
|
+
* This source code is licensed under the MIT license found in the
|
150
|
+
* LICENSE file in the root directory of this source tree.
|
151
|
+
*/
|
152
|
+
|
153
|
+
/** @license React v16.13.1
|
154
|
+
* react-is.production.min.js
|
155
|
+
*
|
156
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
157
|
+
*
|
158
|
+
* This source code is licensed under the MIT license found in the
|
159
|
+
* LICENSE file in the root directory of this source tree.
|
160
|
+
*/
|
161
|
+
|
162
|
+
/** @license React v16.14.0
|
163
|
+
* react-dom.production.min.js
|
164
|
+
*
|
165
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
166
|
+
*
|
167
|
+
* This source code is licensed under the MIT license found in the
|
168
|
+
* LICENSE file in the root directory of this source tree.
|
169
|
+
*/
|
170
|
+
|
171
|
+
/** @license React v16.14.0
|
172
|
+
* react-jsx-runtime.production.min.js
|
173
|
+
*
|
174
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
175
|
+
*
|
176
|
+
* This source code is licensed under the MIT license found in the
|
177
|
+
* LICENSE file in the root directory of this source tree.
|
178
|
+
*/
|
179
|
+
|
180
|
+
/** @license React v16.14.0
|
181
|
+
* react.production.min.js
|
182
|
+
*
|
183
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
184
|
+
*
|
185
|
+
* This source code is licensed under the MIT license found in the
|
186
|
+
* LICENSE file in the root directory of this source tree.
|
187
|
+
*/
|
package/.storybook/main.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require('../../../.storybook/main.js');
|
package/.storybook/manager.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require('../../../.storybook/manager');
|
package/.storybook/preview.jsx
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
import * as React from 'react';
|
2
|
-
import { Provider as MosaicProvider, subscribeTheme } from '@stoplight/mosaic';
|
3
|
-
|
4
|
-
import { PersistenceContextProvider, Styled } from '@stoplight/elements-core';
|
5
|
-
import { DevPortalProvider } from '../src/components/DevPortalProvider';
|
6
|
-
|
7
|
-
export * from '../../../.storybook/preview';
|
8
|
-
|
9
|
-
import '../src/styles.css';
|
10
|
-
|
11
|
-
|
12
|
-
const ThemeProvider = (Story, context) => {
|
13
|
-
const theme = context.globals.theme;
|
14
|
-
React.useEffect(() => {
|
15
|
-
subscribeTheme({ mode: theme === 'dark' ? 'dark' : 'light' });
|
16
|
-
}, [subscribeTheme, theme]);
|
17
|
-
return (
|
18
|
-
<Story {...context} />
|
19
|
-
);
|
20
|
-
};
|
21
|
-
|
22
|
-
const PersistenceBoundaryDecorator = (Story) => (
|
23
|
-
<PersistenceContextProvider><Story /></PersistenceContextProvider>
|
24
|
-
);
|
25
|
-
|
26
|
-
const MosaicProviderDecorator = Story => (
|
27
|
-
<MosaicProvider>
|
28
|
-
<Story />
|
29
|
-
</MosaicProvider>
|
30
|
-
);
|
31
|
-
|
32
|
-
const DevPortalProviderDecorator = (Story, context) => {
|
33
|
-
return (
|
34
|
-
<DevPortalProvider platformUrl={context.args.platformUrl}>
|
35
|
-
<Story />
|
36
|
-
</DevPortalProvider>
|
37
|
-
);
|
38
|
-
};
|
39
|
-
|
40
|
-
const StyledDecorator = Story => (
|
41
|
-
<Styled>
|
42
|
-
<Story />
|
43
|
-
</Styled>
|
44
|
-
);
|
45
|
-
|
46
|
-
export const decorators = [ThemeProvider, MosaicProviderDecorator, PersistenceBoundaryDecorator, DevPortalProviderDecorator, StyledDecorator];
|
package/jest.config.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
[
|
2
|
-
{
|
3
|
-
"id": "YnI6NDc4MDUy",
|
4
|
-
"name": null,
|
5
|
-
"slug": "master",
|
6
|
-
"is_default": true,
|
7
|
-
"is_published": true,
|
8
|
-
"project_id": "cHJqOjM1ODEw"
|
9
|
-
},
|
10
|
-
{
|
11
|
-
"id": "YnI6OTYwNDM4",
|
12
|
-
"name": null,
|
13
|
-
"slug": "v2",
|
14
|
-
"is_default": false,
|
15
|
-
"is_published": true,
|
16
|
-
"project_id": "cHJqOjM1ODEw"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"id": "YnI6OTYwNDM5",
|
20
|
-
"name": null,
|
21
|
-
"slug": "feat/toc-file",
|
22
|
-
"is_default": false,
|
23
|
-
"is_published": true,
|
24
|
-
"project_id": "cHJqOjM1ODEw"
|
25
|
-
}
|
26
|
-
]
|
@@ -1,257 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"id": "b3A6Mzg5NDM2",
|
3
|
-
"branch_node_id": 21,
|
4
|
-
"type": "http_operation",
|
5
|
-
"uri": "/reference/todos/todo.v1.yaml/paths/~1todos/post",
|
6
|
-
"slug": "b3A6Mzg5NDM2-create-todo",
|
7
|
-
"title": "Create Todo",
|
8
|
-
"branch": "master",
|
9
|
-
"summary": "This creates a Todo object\n\n*Markdown is supported in descriptions. Add information here for users to get accustomed to endpoints*",
|
10
|
-
"project_id": "cHJqOjExOTY",
|
11
|
-
"branch_id": "YnI6MTAyODA",
|
12
|
-
"data": {
|
13
|
-
"id": "?http-operation-id?",
|
14
|
-
"iid": "post-todos",
|
15
|
-
"description": "This creates a Todo object\n\n*Markdown is supported in descriptions. Add information here for users to get accustomed to endpoints*",
|
16
|
-
"method": "post",
|
17
|
-
"path": "/todos",
|
18
|
-
"summary": "Create Todo",
|
19
|
-
"responses": [
|
20
|
-
{
|
21
|
-
"code": "201",
|
22
|
-
"description": "New Todo Created",
|
23
|
-
"headers": [],
|
24
|
-
"contents": [
|
25
|
-
{
|
26
|
-
"mediaType": "multipart/form-data",
|
27
|
-
"schema": {
|
28
|
-
"description": "I'm a model's description.",
|
29
|
-
"type": "object",
|
30
|
-
"x-examples": {},
|
31
|
-
"title": "Todo",
|
32
|
-
"properties": {
|
33
|
-
"id": {
|
34
|
-
"type": "number",
|
35
|
-
"minimum": 0,
|
36
|
-
"maximum": 9999,
|
37
|
-
"description": "ID of the task",
|
38
|
-
"readOnly": true
|
39
|
-
},
|
40
|
-
"name": { "type": "string", "minLength": 1, "maxLength": 100, "description": "Name of the task" },
|
41
|
-
"completed": {
|
42
|
-
"type": "boolean",
|
43
|
-
"default": false,
|
44
|
-
"description": "Boolean indicating if the task has been completed or not"
|
45
|
-
},
|
46
|
-
"completed_at": {
|
47
|
-
"type": "string",
|
48
|
-
"format": "date-time",
|
49
|
-
"description": "Time when the task was completed",
|
50
|
-
"readOnly": true
|
51
|
-
},
|
52
|
-
"created_at": {
|
53
|
-
"type": "string",
|
54
|
-
"format": "date-time",
|
55
|
-
"description": "Time when the task was created",
|
56
|
-
"readOnly": true
|
57
|
-
},
|
58
|
-
"updated_at": {
|
59
|
-
"type": "string",
|
60
|
-
"format": "date-time",
|
61
|
-
"description": "Time when the task was updated",
|
62
|
-
"readOnly": true
|
63
|
-
}
|
64
|
-
},
|
65
|
-
"required": ["id", "name", "completed_at", "created_at", "updated_at"],
|
66
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
67
|
-
},
|
68
|
-
"examples": [
|
69
|
-
{
|
70
|
-
"key": "Example Todo",
|
71
|
-
"value": {
|
72
|
-
"id": 0,
|
73
|
-
"name": "string",
|
74
|
-
"completed": true,
|
75
|
-
"completed_at": "2019-08-24T14:15:22Z",
|
76
|
-
"created_at": "2019-08-24T14:15:22Z",
|
77
|
-
"updated_at": "2019-08-24T14:15:22Z"
|
78
|
-
}
|
79
|
-
}
|
80
|
-
],
|
81
|
-
"encodings": []
|
82
|
-
}
|
83
|
-
]
|
84
|
-
},
|
85
|
-
{
|
86
|
-
"code": "403",
|
87
|
-
"description": "Action not allowed",
|
88
|
-
"headers": [],
|
89
|
-
"contents": [
|
90
|
-
{
|
91
|
-
"mediaType": "application/json",
|
92
|
-
"schema": {
|
93
|
-
"type": "object",
|
94
|
-
"properties": { "message": { "type": "string" } },
|
95
|
-
"required": ["message"],
|
96
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
97
|
-
},
|
98
|
-
"examples": [],
|
99
|
-
"encodings": []
|
100
|
-
}
|
101
|
-
]
|
102
|
-
},
|
103
|
-
{
|
104
|
-
"code": "404",
|
105
|
-
"description": "Resource not found",
|
106
|
-
"headers": [],
|
107
|
-
"contents": [
|
108
|
-
{
|
109
|
-
"mediaType": "application/json",
|
110
|
-
"schema": {
|
111
|
-
"title": "Error",
|
112
|
-
"type": "object",
|
113
|
-
"description": "A standard error object.",
|
114
|
-
"x-tags": ["Common"],
|
115
|
-
"properties": { "status": { "type": "string", "description": "A code." }, "error": { "type": "string" } },
|
116
|
-
"required": ["status", "error"],
|
117
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
118
|
-
},
|
119
|
-
"examples": [],
|
120
|
-
"encodings": []
|
121
|
-
}
|
122
|
-
]
|
123
|
-
}
|
124
|
-
],
|
125
|
-
"servers": [
|
126
|
-
{ "description": "Production", "url": "https://todos.stoplight.io" },
|
127
|
-
{ "description": "Sandbox", "url": "https://todos-sandbox.stoplight.io" }
|
128
|
-
],
|
129
|
-
"request": {
|
130
|
-
"body": {
|
131
|
-
"description": "Name of the Todo",
|
132
|
-
"contents": [
|
133
|
-
{
|
134
|
-
"mediaType": "application/json",
|
135
|
-
"schema": {
|
136
|
-
"description": "I'm a model's description.",
|
137
|
-
"type": "object",
|
138
|
-
"x-examples": {},
|
139
|
-
"title": "Todo",
|
140
|
-
"properties": {
|
141
|
-
"id": {
|
142
|
-
"type": "number",
|
143
|
-
"minimum": 0,
|
144
|
-
"maximum": 9999,
|
145
|
-
"description": "ID of the task",
|
146
|
-
"readOnly": true
|
147
|
-
},
|
148
|
-
"name": { "type": "string", "minLength": 1, "maxLength": 100, "description": "Name of the task" },
|
149
|
-
"completed": {
|
150
|
-
"type": "boolean",
|
151
|
-
"default": false,
|
152
|
-
"description": "Boolean indicating if the task has been completed or not"
|
153
|
-
},
|
154
|
-
"completed_at": {
|
155
|
-
"type": "string",
|
156
|
-
"format": "date-time",
|
157
|
-
"description": "Time when the task was completed",
|
158
|
-
"readOnly": true
|
159
|
-
},
|
160
|
-
"created_at": {
|
161
|
-
"type": "string",
|
162
|
-
"format": "date-time",
|
163
|
-
"description": "Time when the task was created",
|
164
|
-
"readOnly": true
|
165
|
-
},
|
166
|
-
"updated_at": {
|
167
|
-
"type": "string",
|
168
|
-
"format": "date-time",
|
169
|
-
"description": "Time when the task was updated",
|
170
|
-
"readOnly": true
|
171
|
-
}
|
172
|
-
},
|
173
|
-
"required": ["id", "name", "completed_at", "created_at", "updated_at"],
|
174
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
175
|
-
},
|
176
|
-
"examples": [],
|
177
|
-
"encodings": []
|
178
|
-
}
|
179
|
-
]
|
180
|
-
},
|
181
|
-
"headers": [
|
182
|
-
{
|
183
|
-
"name": "Content-Type",
|
184
|
-
"required": true,
|
185
|
-
"description": "application/json",
|
186
|
-
"schema": {
|
187
|
-
"type": "string",
|
188
|
-
"default": "application/json",
|
189
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
190
|
-
},
|
191
|
-
"examples": []
|
192
|
-
}
|
193
|
-
],
|
194
|
-
"query": [],
|
195
|
-
"cookie": [],
|
196
|
-
"path": []
|
197
|
-
},
|
198
|
-
"tags": [],
|
199
|
-
"security": [
|
200
|
-
[
|
201
|
-
{
|
202
|
-
"key": "API Key",
|
203
|
-
"description": "Just use `123`. It's super secure ;)",
|
204
|
-
"type": "apiKey",
|
205
|
-
"name": "apikey",
|
206
|
-
"in": "query"
|
207
|
-
}
|
208
|
-
]
|
209
|
-
]
|
210
|
-
},
|
211
|
-
"links": { "mock_url": "https://stoplight.io/mocks/demo/studio-demo/389434/todos" },
|
212
|
-
"outbound_edges": [
|
213
|
-
{
|
214
|
-
"id": "c2NoOjkxNDY1MDA",
|
215
|
-
"type": "model",
|
216
|
-
"slug": "c2NoOjkxNDY1MDA-todo",
|
217
|
-
"title": "Todo",
|
218
|
-
"uri": "/reference/todos/todo.v1.yaml/components/schemas/Todos"
|
219
|
-
},
|
220
|
-
{
|
221
|
-
"id": "YXBpOjM4OTQzNA",
|
222
|
-
"type": "http_service",
|
223
|
-
"slug": "YXBpOjM4OTQzNA-to-dos",
|
224
|
-
"title": "To-dos",
|
225
|
-
"uri": "/reference/todos/todo.v1.yaml"
|
226
|
-
},
|
227
|
-
{
|
228
|
-
"id": "YXBpOjM4OTQzNA",
|
229
|
-
"type": "http_service",
|
230
|
-
"slug": "YXBpOjM4OTQzNA-to-dos",
|
231
|
-
"title": "To-dos",
|
232
|
-
"uri": "/reference/todos/todo.v1.yaml"
|
233
|
-
},
|
234
|
-
{
|
235
|
-
"id": "YXBpOjM4OTQzNA",
|
236
|
-
"type": "http_service",
|
237
|
-
"slug": "YXBpOjM4OTQzNA-to-dos",
|
238
|
-
"title": "To-dos",
|
239
|
-
"uri": "/reference/todos/todo.v1.yaml"
|
240
|
-
},
|
241
|
-
{
|
242
|
-
"id": "c2NoOjkxNDY1MDA",
|
243
|
-
"type": "model",
|
244
|
-
"slug": "c2NoOjkxNDY1MDA-todo",
|
245
|
-
"title": "Todo",
|
246
|
-
"uri": "/reference/todos/todo.v1.yaml/components/schemas/Todos"
|
247
|
-
},
|
248
|
-
{
|
249
|
-
"id": "YXBpOjM4OTQzNA",
|
250
|
-
"type": "http_service",
|
251
|
-
"slug": "YXBpOjM4OTQzNA-to-dos",
|
252
|
-
"title": "To-dos",
|
253
|
-
"uri": "/reference/todos/todo.v1.yaml"
|
254
|
-
}
|
255
|
-
],
|
256
|
-
"inbound_edges": []
|
257
|
-
}
|
@@ -1,144 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"showPoweredBy": true,
|
3
|
-
"items": [
|
4
|
-
{ "id": "ZG9jOjE", "title": "Introduction", "type": "article", "slug": "ZG9jOjE-introduction", "meta": "" },
|
5
|
-
{ "id": "ZG9jOjI", "title": "UI Overview", "type": "article", "slug": "ZG9jOjI-ui-overview", "meta": "" },
|
6
|
-
{ "title": "markdown" },
|
7
|
-
{ "id": "ZG9jOjM", "title": "Markdown Basics", "type": "article", "slug": "ZG9jOjM-markdown-basics", "meta": "" },
|
8
|
-
{
|
9
|
-
"id": "ZG9jOjQ",
|
10
|
-
"title": "Stoplight Flavored Markdown (SMD)",
|
11
|
-
"type": "article",
|
12
|
-
"slug": "ZG9jOjQ-stoplight-flavored-markdown-smd",
|
13
|
-
"meta": ""
|
14
|
-
},
|
15
|
-
{ "title": "APIS" },
|
16
|
-
{
|
17
|
-
"id": "YXBpOjEy",
|
18
|
-
"title": "Swagger Petstore",
|
19
|
-
"type": "http_service",
|
20
|
-
"slug": "YXBpOjEy-swagger-petstore",
|
21
|
-
"meta": "",
|
22
|
-
"items": [
|
23
|
-
{
|
24
|
-
"title": "pets",
|
25
|
-
"items": [
|
26
|
-
{
|
27
|
-
"id": "b3A6MTU",
|
28
|
-
"title": "Create a pet",
|
29
|
-
"type": "http_operation",
|
30
|
-
"slug": "b3A6MTU-create-a-pet",
|
31
|
-
"meta": "post"
|
32
|
-
},
|
33
|
-
{
|
34
|
-
"id": "b3A6MTY",
|
35
|
-
"title": "Info for a specific pet",
|
36
|
-
"type": "http_operation",
|
37
|
-
"slug": "b3A6MTY-info-for-a-specific-pet",
|
38
|
-
"meta": "get"
|
39
|
-
},
|
40
|
-
{
|
41
|
-
"id": "b3A6MTQ",
|
42
|
-
"title": "List all pets",
|
43
|
-
"type": "http_operation",
|
44
|
-
"slug": "b3A6MTQ-list-all-pets",
|
45
|
-
"meta": "get"
|
46
|
-
}
|
47
|
-
]
|
48
|
-
},
|
49
|
-
{
|
50
|
-
"title": "Schemas",
|
51
|
-
"items": [{ "id": "c2NoOjg", "title": "Pets", "type": "model", "slug": "c2NoOjg-pets", "meta": "" }]
|
52
|
-
}
|
53
|
-
]
|
54
|
-
},
|
55
|
-
{
|
56
|
-
"id": "YXBpOjM4OTQzNA",
|
57
|
-
"title": "To-dos",
|
58
|
-
"type": "http_service",
|
59
|
-
"slug": "YXBpOjM4OTQzNA-to-dos",
|
60
|
-
"meta": "",
|
61
|
-
"items": [
|
62
|
-
{
|
63
|
-
"id": "b3A6Mzg5NDM1",
|
64
|
-
"title": "List Todos",
|
65
|
-
"type": "http_operation",
|
66
|
-
"slug": "b3A6Mzg5NDM1-list-todos",
|
67
|
-
"meta": "get"
|
68
|
-
},
|
69
|
-
{
|
70
|
-
"id": "b3A6Mzg5NDM2",
|
71
|
-
"title": "Create Todo",
|
72
|
-
"type": "http_operation",
|
73
|
-
"slug": "b3A6Mzg5NDM2-create-todo",
|
74
|
-
"meta": "post"
|
75
|
-
},
|
76
|
-
{
|
77
|
-
"id": "b3A6Mzg5NDM4",
|
78
|
-
"title": "Get Todo",
|
79
|
-
"type": "http_operation",
|
80
|
-
"slug": "b3A6Mzg5NDM4-get-todo",
|
81
|
-
"meta": "get"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"id": "b3A6OTE0NjUxMA",
|
85
|
-
"title": "Replace Todo",
|
86
|
-
"type": "http_operation",
|
87
|
-
"slug": "b3A6OTE0NjUxMA-replace-todo",
|
88
|
-
"meta": "put"
|
89
|
-
},
|
90
|
-
{
|
91
|
-
"id": "b3A6Mzg5NDM5",
|
92
|
-
"title": "Delete Todo",
|
93
|
-
"type": "http_operation",
|
94
|
-
"slug": "b3A6Mzg5NDM5-delete-todo",
|
95
|
-
"meta": "delete"
|
96
|
-
},
|
97
|
-
{
|
98
|
-
"id": "b3A6Mzg5NDQw",
|
99
|
-
"title": "Update Todo",
|
100
|
-
"type": "http_operation",
|
101
|
-
"slug": "b3A6Mzg5NDQw-update-todo",
|
102
|
-
"meta": "patch"
|
103
|
-
},
|
104
|
-
{
|
105
|
-
"title": "Users",
|
106
|
-
"items": [
|
107
|
-
{
|
108
|
-
"id": "b3A6OTE0NjUxMw",
|
109
|
-
"title": "Get User",
|
110
|
-
"type": "http_operation",
|
111
|
-
"slug": "b3A6OTE0NjUxMw-get-user",
|
112
|
-
"meta": "get"
|
113
|
-
},
|
114
|
-
{
|
115
|
-
"id": "b3A6OTE0NjUxNA",
|
116
|
-
"title": "Delete User",
|
117
|
-
"type": "http_operation",
|
118
|
-
"slug": "b3A6OTE0NjUxNA-delete-user",
|
119
|
-
"meta": "delete"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"id": "b3A6OTE0NjUxNQ",
|
123
|
-
"title": "Create User",
|
124
|
-
"type": "http_operation",
|
125
|
-
"slug": "b3A6OTE0NjUxNQ-create-user",
|
126
|
-
"meta": "post"
|
127
|
-
}
|
128
|
-
]
|
129
|
-
},
|
130
|
-
{
|
131
|
-
"title": "Schemas",
|
132
|
-
"items": [
|
133
|
-
{ "id": "c2NoOjkxNDY1MDA", "title": "Todo", "type": "model", "slug": "c2NoOjkxNDY1MDA-todo", "meta": "" },
|
134
|
-
{ "id": "c2NoOjkxNDY1MDE", "title": "User", "type": "model", "slug": "c2NoOjkxNDY1MDE-user", "meta": "" }
|
135
|
-
]
|
136
|
-
}
|
137
|
-
]
|
138
|
-
},
|
139
|
-
{ "title": "Schemas" },
|
140
|
-
{ "id": "c2NoOjU", "title": "Error", "type": "model", "slug": "c2NoOjU-error", "meta": "" },
|
141
|
-
{ "id": "c2NoOjY", "title": "Category", "type": "model", "slug": "c2NoOjY-category", "meta": "" },
|
142
|
-
{ "id": "c2NoOjc", "title": "Pet", "type": "model", "slug": "c2NoOjc-pet", "meta": "" }
|
143
|
-
]
|
144
|
-
}
|