1.0.0 • Published 6 months ago

datolite v1.0.0

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

It uses apk.topaz24.pl/api to get the data.

Installation

npm install datolite

Example

import { getAdvice } from "topaz-api";

console.log(await getAdvice(1));
// ===>
// {
//   id: 1,
//   title: "Title",
//   teaser: "<p>Teaser</p>",
//   image: {
//     extension: "jpg",
//     name: "99999999-9999-4e99-9999-999999999999",
//   },
//   stickOnCarousel: false,
//   showOnlyInCarousel: false,
//   adviceType: {
//     id: 1,
//     name: "Przepis"
//   },
//   content: "<p>Content</p>",
//   orderInCarousel: null,
//   ingredients: [
//     {
//       id: 10,
//       name: "Name",
//       product: {//..}
//     }
//   ],
//   createDate: Date
// }
1.0.0

6 months ago