Skip to content
Snippets Groups Projects
Select Git revision
  • 7ea25cd0a533789eb4e8e053e939a968ca1ccca9
  • master default protected
  • 1.31
  • 4.38.3
  • 4.38.2
  • 4.38.1
  • 4.38.0
  • 4.37.2
  • 4.37.1
  • 4.37.0
  • 4.36.0
  • 4.35.0
  • 4.34.1
  • 4.34.0
  • 4.33.1
  • 4.33.0
  • 4.32.2
  • 4.32.1
  • 4.32.0
  • 4.31.0
  • 4.30.1
  • 4.30.0
  • 4.29.1
23 results

restapi.mjs

Blame
  • Volker Schukai's avatar
    Volker Schukai authored
    7ea25cd0
    History
    restapi.mjs 342 B
    import {RestAPI} from '@schukai/monster/source/data/datasource/server/restapi.mjs';
    
    const ds = new RestAPI({
        write: {
            url: 'https://httpbin.org/get'    
        },
        read: {
            url: 'https://httpbin.org/get'
        }
    });
    
    ds.set({flag: true})
    ds.write().then(() => console.log('done'));
    ds.read().then(() => console.log('done'));