atosorigin / rest_spreadsheet Goto Github PK
View Code? Open in Web Editor NEWa simple programme to express a CSV file as a rest API using node.js
Home Page: blog.atos.net
a simple programme to express a CSV file as a rest API using node.js
Home Page: blog.atos.net
The ReST Spreadsheet application is designed to allow access to the data within a spreadsheet via a ReST api, using a light weight simple implementation of node.js. This application gets basic web server functionality from https://gist.github.com/246761 a big thanks for sharing. This shows the front middle back architecture pattern. The front is represented by the html pages, the middle is represented by the rest_spreadsheet.js file (this is the node.js file) the back is represented by the spreadsheet. The Middle tier code was developed using server side javascript following the MVC pattern. Additional to the HTML front end a front end was developed using a google doc spreadsheet to show how visualisations can be achieved using the data. Hopefully what this demonstrates is that multiple consumers can be developed based on the same ReST Api. These can be across many devices, operating systems and applications (e.g. An iOS/Android application, a spreadsheet or a HTML5 webpage). Although the specific data used here might have a limited appeal, the power of presenting corporate data ReST(fully) gives the user the ultimate choice about how they wish to consume that data. Supporting information ======================== * Installation for node.js http://nodejs.org/ * White paper on Front Middle Back https://docs.google.com/a/routetodigital.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B0nl0PiKHURCYTlkZjJlN2ItMzIwOC00N2ZjLThmYTEtMTNmZDZkM2FkM2E3&hl=en * Collaboration on Middle API https://docs.google.com/a/routetodigital.com/document/d/1g9Dxf_p-Z9f-ARnpYMPLMLGzQLbWsrJYdT1EuC4C1dM/edit?hl=en_US * Development code,issues and documents https://github.com/atosorigin/rest_spreadsheet/wiki * Incident API Spreadsheet https://docs.google.com/a/routetodigital.com/document/d/1g9Dxf_p-Z9f-ARnpYMPLMLGzQLbWsrJYdT1EuC4C1dM/edit?hl=en_US TODO ============= * paging * make it generic for all spreadsheets
Create code to find and do the format parameter
Patterns for the /incident/[id] route cause the server crash is the incident does not exist.
e.g.
/incidents/1929832
http://127.0.0.1/incidents?priority=Low - returns nothing
http://127.0.0.1/incidents?Priority=Low - returns the correct records
Is there any way we can make this work so that they both return the same values?
/incidents/?format=xml
thinks its looking for an incident
Needs some handling added for unrecognised query string attachments.
The parts of the table need to be moved out of and wrapped in
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.