1.0.8 • Published 12 months ago

@flyodev/nitrocms-js v1.0.8

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

nitrocms

yarn add @flyodev/nitrocms-js

Getting Started

Please follow the installation instruction and execute the following JS code:

import { ApiClient, ConfigApi, PagesApi } from '@flyodev/nitrocms-js'

var defaultClient = ApiClient.instance;
defaultClient.defaultHeaders = {}

var ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = "INSERT_YOUR_TOKEN_HERE"

// the config data contains all informations, including all pages to retrieve further informations like page content:
const configData = await new ConfigApi().config()

// retrieve a the content for home page
const homeData = await new PagesApi().home()

// trieve information by a certain slug
const pageData = await new PagesApi().page({slug: 'the/slug/of/the/page'})

Documentation for API Endpoints

All URIs are relative to https://api.flyo.cloud/nitro

ClassMethodHTTP requestDescription
ConfigApiconfigGET /configGet Config
PagesApihomeGET /pages/homeGet Home
PagesApipagesGET /pagesGet Pages
SitemapApipagesGET /sitemapGet Pages
ContentApipagesPUT /content/{pageId}Put Content
1.0.8

12 months ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.0

1 year ago