@teemill/schema 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Schema API
6
6
  * View PodOS API Schemas
7
7
  *
8
- * The version of the OpenAPI document: 0.2.2
8
+ * The version of the OpenAPI document: 0.2.4
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/docs/Api.md ADDED
@@ -0,0 +1,32 @@
1
+ # Api
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | | [default to undefined]
9
+ **name** | **string** | | [default to undefined]
10
+ **description** | **string** | | [default to undefined]
11
+ **version** | **string** | | [default to undefined]
12
+ **updatedAt** | **string** | | [default to undefined]
13
+ **endpoints** | [**Array<ApiEndpointsInner>**](ApiEndpointsInner.md) | | [default to undefined]
14
+ **schema** | **object** | | [optional] [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { Api } from '@teemill/schema';
20
+
21
+ const instance: Api = {
22
+ id,
23
+ name,
24
+ description,
25
+ version,
26
+ updatedAt,
27
+ endpoints,
28
+ schema,
29
+ };
30
+ ```
31
+
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # ApiEndpointsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [default to undefined]
9
+ **method** | **string** | | [default to undefined]
10
+ **path** | **string** | | [default to undefined]
11
+ **tags** | **Array<string>** | | [default to undefined]
12
+ **internal** | **boolean** | | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { ApiEndpointsInner } from '@teemill/schema';
18
+
19
+ const instance: ApiEndpointsInner = {
20
+ name,
21
+ method,
22
+ path,
23
+ tags,
24
+ internal,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # ApiError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ApiError } from '@teemill/schema';
15
+
16
+ const instance: ApiError = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/Apis.md ADDED
@@ -0,0 +1,20 @@
1
+ # Apis
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **apis** | [**Array<Api>**](Api.md) | | [optional] [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { Apis } from '@teemill/schema';
14
+
15
+ const instance: Apis = {
16
+ apis,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,121 @@
1
+ # ApisApi
2
+
3
+ All URIs are relative to *https://localhost:8080/v1/schema*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getApi**](#getapi) | **GET** /{api} | Get api|
8
+ |[**listApis**](#listapis) | **GET** / | List apis|
9
+
10
+ # **getApi**
11
+ > Api getApi()
12
+
13
+ Get an API
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ ApisApi,
20
+ Configuration
21
+ } from '@teemill/schema';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new ApisApi(configuration);
25
+
26
+ let api: string; //API name (default to undefined)
27
+ let project: string; //Project unique identifier (optional) (default to undefined)
28
+
29
+ const { status, data } = await apiInstance.getApi(
30
+ api,
31
+ project
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **api** | [**string**] | API name | defaults to undefined|
40
+ | **project** | [**string**] | Project unique identifier | (optional) defaults to undefined|
41
+
42
+
43
+ ### Return type
44
+
45
+ **Api**
46
+
47
+ ### Authorization
48
+
49
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
50
+
51
+ ### HTTP request headers
52
+
53
+ - **Content-Type**: Not defined
54
+ - **Accept**: application/json
55
+
56
+
57
+ ### HTTP response details
58
+ | Status code | Description | Response headers |
59
+ |-------------|-------------|------------------|
60
+ |**200** | Successfully found api | - |
61
+ |**400** | Failed validation | - |
62
+ |**500** | Unknown server error | - |
63
+
64
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
65
+
66
+ # **listApis**
67
+ > Apis listApis()
68
+
69
+ List all available APIs
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ ApisApi,
76
+ Configuration
77
+ } from '@teemill/schema';
78
+
79
+ const configuration = new Configuration();
80
+ const apiInstance = new ApisApi(configuration);
81
+
82
+ let project: string; //Project unique identifier (optional) (default to undefined)
83
+ let search: string; //Search term used to filter results by name or identifier (optional) (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.listApis(
86
+ project,
87
+ search
88
+ );
89
+ ```
90
+
91
+ ### Parameters
92
+
93
+ |Name | Type | Description | Notes|
94
+ |------------- | ------------- | ------------- | -------------|
95
+ | **project** | [**string**] | Project unique identifier | (optional) defaults to undefined|
96
+ | **search** | [**string**] | Search term used to filter results by name or identifier | (optional) defaults to undefined|
97
+
98
+
99
+ ### Return type
100
+
101
+ **Apis**
102
+
103
+ ### Authorization
104
+
105
+ [session-oauth](../README.md#session-oauth), [api-key](../README.md#api-key)
106
+
107
+ ### HTTP request headers
108
+
109
+ - **Content-Type**: Not defined
110
+ - **Accept**: application/json
111
+
112
+
113
+ ### HTTP response details
114
+ | Status code | Description | Response headers |
115
+ |-------------|-------------|------------------|
116
+ |**200** | Successfully listed apis | - |
117
+ |**400** | Failed validation | - |
118
+ |**500** | Unknown server error | - |
119
+
120
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
121
+
@@ -0,0 +1,22 @@
1
+ # ValidationError
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **errors** | **{ [key: string]: Array<string>; }** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ValidationError } from '@teemill/schema';
15
+
16
+ const instance: ValidationError = {
17
+ message,
18
+ errors,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Schema API
5
5
  * View PodOS API Schemas
6
6
  *
7
- * The version of the OpenAPI document: 0.2.2
7
+ * The version of the OpenAPI document: 0.2.4
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teemill/schema",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "OpenAPI client for @teemill/schema",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {