computablelabs / crunky Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
The queries that the backend system should run should be drawn from a limited subset that is known to be safe in order to avoid potential security vulnerabilities. For this purpose, we should assemble a whitelist of known "safe" queries and limit the user to running queries from this safe subset.
We'll want Computable backend systems like Crunky to support a REST API. The goal of the REST API is to provide a standard way for data market users to communicate with backends. Here's a first cut at some proposed REST API options:
AUTHENTICATE user-credentials
POST /signup
creates a new user recordPOST /login
creates a new session record for a given userGET_SCHEMA auth_token
GET /marketplaces/:marketplace_id/schema
returns the schema for a data marketplace, given a marketplace IDRUN_QUERY auth_token query-specification
POST /marketplaces/:marketplace_id/search
returns the result of the query defined in the request bodyADD_DATAPOINT auth_token datapoint
POST /marketplaces/:marketplace_id/data
adds the associated data to the data marketplace, given a marketplace IDREMOVE_DATAPOINT auth_token datapoint
DELETE /marketplaces/:marketplace_id/data/:data_id
removes the specified data from its data marketplace, given data and marketplace IDsMARKETS_SUPPORTED
GET /marketplaces
returns a list of supported data marketplacesLet's discuss the details of the REST API in the comments. As we gain clarity, I'll edit this top-level listing of the REST API to stay current.
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.