1.0.8 • Published 9 months ago

@shiker/admin-api v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Installation

npm install @shiker/admin-api --save

Usage

Here is a simple code for obtaining a list of posts.

import { AdminApiClient, HaloRestAPIClient } from '@shiker/admin-api'

// http request tool for halo rest api.
const haloRestApiClient = new HaloRestAPIClient({
  baseUrl: process.env.HALO_BASE_URL,
})

// create adminApiClient by haloRestApiCLient.
const haloAdminClient = new AdminApiClient(haloRestApiClient)

// obtaining a list of articles.
haloAdminClient.post.list().then((res) => {
  console.log(res)
})

You can also view the complete implementation of the halo-admin project: @shiker/halo-admin.

License

MIT license

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago