mocks-server / admin-api-client Goto Github PK
View Code? Open in Web Editor NEWApi client providing methods for the Mocks Server Admin API Plugin
Api client providing methods for the Mocks Server Admin API Plugin
A new route has been added to plugin-admin-api: Alerts (mocks-server/plugin-admin-api#78). A new method should be added to return a collection of current alerts.
This issue provides visibility into Renovate updates and their statuses. Learn more
This repository currently has no open or pending branches.
It is desirable to publish the first version of the @mocks-server/admin-api-client package, which will allow users to interact programmatically with the Mocks Server administration REST API.
In the first version It should expose methods to perform some basic operations such as:
Here goes a proposal for the interface:
const AdminApiClient = require("@mocks-server/admin-api-client");
const apiClient = new AdminApiClient("http://localhost:3100");
apiClient.setBehavior("foo-behavior").then(() => {
console.log("Behavior changed");
});
apiClient.setDelay(3000).then(() => {
console.log("Delay changed");
});
Tag mocks-server-plugin
should be removed form the package.json
tags, as it is not really a plugin.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.