1.0.0
Dummy Micro Service API that you may adopt for your needs
Extends TMMicroServiceAPI
Object with class service messages
Get posts list
PostList
:
array of posts
Read posts list
(async () => {
const Dummy = new DummyService('https://jsonplaceholder.typicode.com/');
const list = await Dummy.get();
})();
Create post
Post
:
created post
Create post
(async () => {
const Dummy = new DummyService('https://jsonplaceholder.typicode.com/');
const details = await Dummy.post('My Title', 'My Text');
})();