-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
286 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Nitrocms.Block | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**items** | **[Object]** | Mapping Items | [optional] | ||
**content** | **Object** | Text Contents | [optional] | ||
**config** | **Object** | Config Content | [optional] | ||
**identifier** | **String** | The unique identifier for the current block | [optional] | ||
**slots** | [**[BlockSlotsInner]**](BlockSlotsInner.md) | | [optional] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Nitrocms.BlockSlotsInner | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**identifier** | **String** | The unique identifier of the slot | [optional] | ||
**content** | [**[Block]**](Block.md) | | [optional] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Nitrocms.Config200Response | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**nitro** | [**Config200ResponseNitro**](Config200ResponseNitro.md) | | [optional] | ||
**pages** | **Object** | | [optional] | ||
**redirects** | **Object** | | [optional] | ||
**nav** | [**Config200ResponseNav**](Config200ResponseNav.md) | | [optional] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Nitrocms.Config200ResponseNav | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**items** | [**[PagesInner]**](PagesInner.md) | | [optional] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Nitrocms.Config200ResponseNitro | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **Number** | | [optional] | ||
**domain** | **String** | | [optional] | ||
**slug** | **String** | | [optional] | ||
**version** | **Number** | Whenever flyo generates new data, this version will be increased. This can be used for cache informnations. | [optional] | ||
**isOnline** | **Number** | | [optional] | ||
**updatedAt** | **Number** | | [optional] | ||
**language** | **String** | | [optional] | ||
**integrationId** | **Number** | | [optional] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Nitrocms.ConfigApi | ||
|
||
All URIs are relative to *https://edgeapi.flyo.cloud/nitro* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**config**](ConfigApi.md#config) | **GET** /config | Get Config | ||
|
||
|
||
|
||
## config | ||
|
||
> Config200Response config() | ||
Get Config | ||
|
||
Returns all relevant config data to run a site. | ||
|
||
### Example | ||
|
||
```javascript | ||
import Nitrocms from 'nitrocms'; | ||
let defaultClient = Nitrocms.ApiClient.instance; | ||
// Configure API key authorization: ApiKeyAuth | ||
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; | ||
ApiKeyAuth.apiKey = 'YOUR API KEY'; | ||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) | ||
//ApiKeyAuth.apiKeyPrefix = 'Token'; | ||
|
||
let apiInstance = new Nitrocms.ConfigApi(); | ||
apiInstance.config().then((data) => { | ||
console.log('API called successfully. Returned data: ' + data); | ||
}, (error) => { | ||
console.error(error); | ||
}); | ||
|
||
``` | ||
|
||
### Parameters | ||
|
||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
[**Config200Response**](Config200Response.md) | ||
|
||
### Authorization | ||
|
||
[ApiKeyAuth](../README.md#ApiKeyAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Nitrocms.Page | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**id** | **Number** | | [optional] | ||
**nitroId** | **Number** | | [optional] | ||
**title** | **String** | | [optional] | ||
**slug** | **String** | | [optional] | ||
**pagePageId** | **Number** | | [optional] | ||
**depth** | **Number** | | [optional] | ||
**sortIndex** | **Number** | | [optional] | ||
**isOnline** | **Number** | | [optional] | ||
**isHome** | **Number** | | [optional] | ||
**createdAt** | **Number** | | [optional] | ||
**updatedAt** | **Number** | | [optional] | ||
**isVisible** | **Number** | | [optional] | ||
**metaJson** | **Number** | | [optional] | ||
**json** | [**[Block]**](Block.md) | | [optional] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# Nitrocms.PagesApi | ||
|
||
All URIs are relative to *https://edgeapi.flyo.cloud/nitro* | ||
|
||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**home**](PagesApi.md#home) | **GET** /pages/home | Get Home | ||
[**page**](PagesApi.md#page) | **GET** /pages | Get Page | ||
|
||
|
||
|
||
## home | ||
|
||
> Page home() | ||
Get Home | ||
|
||
### Example | ||
|
||
```javascript | ||
import Nitrocms from 'nitrocms'; | ||
let defaultClient = Nitrocms.ApiClient.instance; | ||
// Configure API key authorization: ApiKeyAuth | ||
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; | ||
ApiKeyAuth.apiKey = 'YOUR API KEY'; | ||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) | ||
//ApiKeyAuth.apiKeyPrefix = 'Token'; | ||
|
||
let apiInstance = new Nitrocms.PagesApi(); | ||
apiInstance.home().then((data) => { | ||
console.log('API called successfully. Returned data: ' + data); | ||
}, (error) => { | ||
console.error(error); | ||
}); | ||
|
||
``` | ||
|
||
### Parameters | ||
|
||
This endpoint does not need any parameter. | ||
|
||
### Return type | ||
|
||
[**Page**](Page.md) | ||
|
||
### Authorization | ||
|
||
[ApiKeyAuth](../README.md#ApiKeyAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
||
|
||
## page | ||
|
||
> Page page(opts) | ||
Get Page | ||
|
||
### Example | ||
|
||
```javascript | ||
import Nitrocms from 'nitrocms'; | ||
let defaultClient = Nitrocms.ApiClient.instance; | ||
// Configure API key authorization: ApiKeyAuth | ||
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth']; | ||
ApiKeyAuth.apiKey = 'YOUR API KEY'; | ||
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) | ||
//ApiKeyAuth.apiKeyPrefix = 'Token'; | ||
|
||
let apiInstance = new Nitrocms.PagesApi(); | ||
let opts = { | ||
'slug': foo/bar // String | The pages slug, if none give the homepage is returned. Also paths with subpages are allowed | ||
}; | ||
apiInstance.page(opts).then((data) => { | ||
console.log('API called successfully. Returned data: ' + data); | ||
}, (error) => { | ||
console.error(error); | ||
}); | ||
|
||
``` | ||
|
||
### Parameters | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**slug** | **String**| The pages slug, if none give the homepage is returned. Also paths with subpages are allowed | [optional] | ||
|
||
### Return type | ||
|
||
[**Page**](Page.md) | ||
|
||
### Authorization | ||
|
||
[ApiKeyAuth](../README.md#ApiKeyAuth) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Nitrocms.PagesInner | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**label** | **String** | | [optional] | ||
**href** | **String** | | [optional] | ||
**path** | **String** | A path always starts with a trailing slash | [optional] | ||
**children** | [**[PagesInner]**](PagesInner.md) | | [optional] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/sh | ||
openapi-generator-cli generate -i https://api.flyo.cloud/nitro/openapi \ | ||
openapi-generator-cli generate -i https://edgeapi.flyo.cloud/nitro/openapi \ | ||
-g javascript \ | ||
-o . \ | ||
--additional-properties=usePromises=true,projectName=nitrocms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters