flyvictor / fortune-client Goto Github PK
View Code? Open in Web Editor NEWLibrary for interacting with multiple instances of Fortune
License: MIT License
Library for interacting with multiple instances of Fortune
License: MIT License
We have some support for custom actions in our version of Fortune. However, we don't have a way to call these from a Fortune Client yet.
Support a fluent interface on fortune client, that allows us to, for example query with:
fortuneClient.users.get({ name : "Craig" }).fields(["name", "id"]).sort({ name : -1 }).page(1).pageSize(10)
Or maybe
fortuneClient.getUsers({ name : "Craig" }).fields(["name", "id"]).sort({ name : -1 }).page(1).pageSize(10)
Should we keep the existing interface too?
The fortune API returns linked resources in a seperate array, to remove duplication, minimising the data transferred on the wire.
I.e. Given the example https://github.com/flyvictor/fortune/blob/master/examples/relationships.js, a GET /users?include=addresses request would get a response like:
{ "users" : [{ "name" : "craig", links : { "addresses" : [ "1"] } }]
"linked" : {
"addresses" : [ { id : "1" ... } ]
}
}
This normalised form is great for transfer, but more difficult for a client app to process.
Fortune client should make this easier for client apps by de-normalising the data before providing it to the client app.
The current implementation is not recursive. We should add a new one (but keep the old one for backwards compatability).
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.