Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement quartermaster APIs #31

Closed
matthiasbalke opened this issue May 1, 2016 · 0 comments · Fixed by #54
Closed

implement quartermaster APIs #31

matthiasbalke opened this issue May 1, 2016 · 0 comments · Fixed by #54
Assignees
Milestone

Comments

@matthiasbalke
Copy link
Member

matthiasbalke commented May 1, 2016

implement the following json APIs using mocked data:

  • api/dashboards - GET - fetch all configured dashboard ids
  • api/dashboards/{dashboardId} - GET - fetch the specified dashboard including all widgets configurations for this dashboard
  • api/widgets/{widgetId} - GET - fetch widget config for specified widget
  • api/widgets/{widgetId} - POST - create a widget
  • api/widgets/{widgetId}/data - GET - fetch the current widget data for specified widget

example json to create a widget:

{
  "title" : "myUrlWidget",
  "sourceConfigs" : [
    {
      "id" : "urlSource",
      "type" : "urlSource",
      "interval" : 1000,
      "configData" :
        {
          "url" : "https://echo.getpostman.com/get?test=123"
        }
     }
  ]
}

Widget IDs are globally unique

@matthiasbalke matthiasbalke changed the title implement quartermaster api implement quartermaster APIs May 1, 2016
@matthiasbalke matthiasbalke added this to the 0.1.0 milestone May 1, 2016
@matthiasbalke matthiasbalke self-assigned this May 12, 2016
matthiasbalke added a commit to matthiasbalke/infiniboard that referenced this issue May 20, 2016
matthiasbalke added a commit to matthiasbalke/infiniboard that referenced this issue May 20, 2016
matthiasbalke added a commit to matthiasbalke/infiniboard that referenced this issue May 20, 2016
matthiasbalke added a commit to matthiasbalke/infiniboard that referenced this issue May 20, 2016
matthiasbalke added a commit to matthiasbalke/infiniboard that referenced this issue May 22, 2016
added test controller for hal json rendering
@matthiasbalke matthiasbalke modified the milestones: 0.2.0, 0.1.0 Jun 17, 2016
Pentadrago pushed a commit that referenced this issue Jun 21, 2016
* [WIP] #31 implementing HalJson REST API

* #31 rewrote api using spring-hateoas

* #31 changed server.port in circle.yml to match application.properties

* #31 added widget data

* #31 added HalJson _embedded / _links

added test controller for hal json rendering

* updated spring loaded

* refactored to match java code conventions

render only non empty relations

* added support for arrays

multiple links
multiple embedded resources

* added getter / setter with lists

* switched to custom HalJsonResouce renderer

added mapper methods for resources

* [WIP] first try to integrate angular2/http

regular dashboard functions are currently broken

* refactored packages

* moved /api/widgets endpoint to basic HalJsonResource

added Mapper for Entities to HalJsonResource
changed port back to 8080

* added null check to load widget config

* integrated widgets into dashboards

* fixed application ports

* removed embedded mongo param from circleci build

* fixed curl test command

* added custom application configuration for docker containers

* fixed exposed ports

* added harvester health check

this is intended to check the connection to the mongo container

* fixed docker ADD command

* removed test controller

* added actuator to quartermaster for health checking

* fixed harvester port configuration for docker containers

* added management port to docker container config

* exported quartermaster management port for linkage check

* quartermaster exposes port 8090 now

* added name to mongo container

* stopped mongo circleci service

* using docker-compose to start containers

* trying to get more log output from docker containers

* caching node_modules

added docker version to output

* downgraded docker-compose to work with docker 1.8.2

* added docker-compose version to output

* fixed docker container names

* added docker ps output

* using relative path for node_modules caching

* added some time for containers to fully startup

* starting containers via docker-compose up

* fixed circleci testing setup by using docker-compose up

* removed locally exported mongo port to work on circleci

* fixed container names

* removed unused code

* reverted changes made to angular client

* removed unused class

* optimized imports

* added comment for cors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant