sdkman / sdkman-broadcast

The SDKMAN! REST API service for Broadcasting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDKMAN! Broadcast API

Build status GitHub tag (latest by date)

This is a dedicated microservice API used for Broadcast Messages on the SDKMAN! platform. It is used by SDKMAN! to announce breaking news about Candidate Releases and other important events. It's Broadcast Messages can be consumed through it's REST endpoints, as is the case with the SDKMAN! Bash client.

Content Negotiation

The default behavior of the API is to return plain text responses which can be consumed by the Bash client. However, it can also return JSON responses through content negotiation. By simply adding an Accept header of application/json to your request, you should see the results in a JSON document.

Testing

You will need to have MongoDB up and running locally on the default port:

$ docker run -d -p 27017:27017 mongo:3.2

Now run the full suite of tests by issuing the following command:

$ ./gradlew check

Running it up locally

Assemble and run the application.

$ ./gradlew bootRun

About

The SDKMAN! REST API service for Broadcasting

License:Apache License 2.0


Languages

Language:Groovy 84.9%Language:Gherkin 14.8%Language:Dockerfile 0.3%