Coder Social home page Coder Social logo

beacon-network-client's People

Contributors

artemik avatar mcupak avatar

Watchers

 avatar  avatar  avatar

beacon-network-client's Issues

Add integration tests

It would be useful to be able to run the test suite against a real (not mocked) server to check for API compatibility as we make changes on both client and server side in the future. Thanks to the way the current tests are designed, it seems like the integration tests could reuse a lot of the existing stuff.

I would imagine this as follows. The current unit tests stay as they are and are run by default with the default profile. Integration tests will have their own maven profile, not active by default. When this profile is specified, mocking would not be used. The URL of the server would default to https://beacon-network.org/api/, and could be overridden by supplying a system property. This can be specified in surefire configuration with something like this:

<plugin>
    <artifactId>maven-surefire-plugin</artifactId>
    <configuration>
        <systemPropertyVariables>
            <property>
                <name>...</name>
                <value>...</value>
            </property>
        </systemPropertyVariables>
    </configuration>
</plugin>

Create Java API library

Implement a Java library talking to the Beacon Network API. The goal here is to create a jar file, which can be included as a dependency in your project and utilized to execute queries against the Beacon Network API.

Links:

Requirements:

  • Reuse objects (DTOs) exposed through the Beacon Network API (a private module now, but can be shared. Contact mcupak).
  • Beacon Network provides JSON and XML APIs. The library should utilize the JSON API.
  • Beacon Network uses JAX-RS and Moxy to expose DTOs. Using these technologies could make things easier.
  • API host (port, context) should be configurable from the application using the library.
  • Multi-module Maven project with 2 modules - API (interfaces providing API methods, most of which will return DTOs) and IMPL (the actual library implementation). API module should not have any non-trivial depencies on external libraries. The application using the library should include the API module as a compile time and IMPL module as a runtime dependency.
  • Errors should be handled through exceptions (depending on HTTP status codes returned from the Beacon Network API).
  • Unit tests.
  • Documentation (README, javadoc).

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.