Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

sdkman/sdkman-broadcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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