Giter Site home page Giter Site logo

docster's Introduction

Build Status

Docster

Transforming proxy that creates an html represenation of your json hypermedia (e.g. HAL) api on the fly.

Running instances

Start

SERVER_URI="my-server-base-uri" sbt run

or

sbt run -Dserver.uri="my-server-base-uri"

Execute tests

sbt test

Current Features

  • transparent proxy
  • HAL support:
    • displays relations
    • displays attributes
    • displays embedded entities

docster's People

Contributors

arnelandwehr avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docster's Issues

Port numbers in curie links get lost

If the href value of a curie link contains a port number the description of the link relation contains the resolved link relation link but without port number, e.g., if the API returns the following HAL:

{
  "_links" : {
    "om:reports" : [ {
      "href" : "http://localhost:8020/reports",
      "templated" : false
    } ],
    "curies" : [ {
      "href" : "http://localhost:8020/rels/ordermanager/{rel}",
      "name" : "om",
      "templated" : true
    } ],
    ...

The link in description of om:reports will be http://localhost/rels/ordermanager/all.

docster should support multiple apis

possible concept:

  1. GET / => docsters admin resource
  2. here you can configure a new api domain under a unique string key. E.g. orders -> http://orders-manager
  3. now you are able to transform all orders-manager endpoints by calling http://docster-domain/orders/*

The registered domains could be stored which would have the nice side effect of incrementally creating an api registry. Docster could automatically group the apis by Content-Type

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.