Giter VIP home page Giter VIP logo

resthub's Introduction

RESTful API to Oracle databases

RestHub website
RestHub documentation Architecture

Overview

RestHub was designed to provide a way to access data from the client application through RESTful API. In this manner developers will no longer have to implement difficult approaches for data retrieval from the database in representational layer and can separate application and representation codebase. They will be able to access data through the RestHub system by sending simple SQL queries.

Benefits

Separate data access from the representation:

  • Data access via API
  • Application and representation on separate codebase
  • Standard, reusable API
  • Many ways to use the service (Browser, Python, Java, JS, ...)

Features

Self descriptive:

  • Includes metadata
  • HATEOAS (including hypermedia links with the responses).

Secure:

  • Specialized multilevel query parsers
  • Multithreading
  • Timeouts

Fast:

  • Caching
  • Asynchronous prefetching

Flexible:

  • SQL for querying

Types of resources

  • Tables: Views with optional parameters and metadata, back-end control.
  • Queries: Views on Tables, front-end control.
  • Cache: Query result in different representation for fast retrieval.

API

URL Method Description
/tables GET List of tables in JSON
/tables/{namespace} GET List of namespace tables in JSON
/table/{namespace}/{name} GET Table description in JSON
/queries GET List of queries in JSON
/query POST Create query from provided entity SQL and return automatically generated {id}
/query/{id} GET Query description in JSON
/query/{id} DELETE Remove query
/query/{id}/data GET Get query data. Media type is by Accept header. For example: “Accept” : “application/xml”
/query/{id}/page/{pp}/{p}/data GET Get query page data. Media type is by Accept header. Variables: pp - data rows per page, p - page number
/table/{namespace}/{table}/data GET Get table data. Media type is by Accept header. For example: “Accept” : “application/xml”. Creates query and redirects to it.
/table/{namespace}/{table}/page/{pp}/{p}/data GET Get query page data. Media type is by Accept header. Variables: pp - data rows per page, p - page number. Creates query and redirects to it.
/query/{id}/cache GET Get query cache information
/query/{id}/cache DELETE Clean all query cache
/table/{namespace}/{name}/cache GET Get the list of query caches that use the table defined
/query/{id}/data?{p}={v} GET Get query data with parameters. Variables: p - parameter name, v - parameter value.
/blacklist GET List of blacklisted tables in JSON
/blacklist/{namespace} GET List of blacklisted namespace tables in JSON
/blacklist/{namespace}/{name} GET Blacklisted table description in JSON
/blacklist DELETE Remove all tables from blacklist (refresh)
/blacklist/{namespace} DELETE Remove all namespace tables from blacklist (refresh)
/blacklist/{namespace}/{name} DELETE Remove table from blacklist (refresh)
/info GET General information about the service

resthub's People

Contributors

valdasraps avatar audrium avatar

Watchers

James Cloos avatar Eimar Fandino avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.