Giter VIP home page Giter VIP logo

hapi's People

Watchers

 avatar  avatar

hapi's Issues

need special response for "no data in interval"

One of the exceptions that server can throw is when no data is found in the interval. Ideally, the server should respond with an empty (no-record) response, but this requires that a proper response could be formed, which might be impossible. (Consider that the server might be adapting another server, so it doesn't know what to expect unless the request contains data.) Therefore a special exception type is needed for this case. CDAWeb is returning a 503 with the message "No data...", for example. Also there may be a specific error code that could be reserved for the purpose.

why csv still needs type

There was a tiny bit of discussion about why the parameters need a type if a CSV is used to communicate the data. This is simply because it informs the parser. For example, 'isotime' means you get out the ISO8601 parser, and integer means you can store these data as ints.

Need definition for id

It's not clear what the restrictions on the id parameter are. For now I'm coding to include anything, but I think this should be restricted to Java identifiers.

Bugs in spec document, series 1

I see a couple of issues with the current version of the document at:
https://github.com/hapi-server/specification ,
and this should be used to enumerate them.

  1. CSV responses have a first row with the labels for each column. This should not be there.
  2. one of the json responses has a closing double quote, instead of a double quote, under #data.
  3. just prior to #catalog, capabilities is a misformatted array.

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.