Skip to content
This repository has been archived by the owner on May 31, 2018. It is now read-only.
/ Team3 Public archive

Team3 WIC Contest Microservice repository

Notifications You must be signed in to change notification settings

francetem/Team3

Repository files navigation

GoT Quotes microservice in Java

Description

A very simple GoT quotes service example in Java.

Endpoints

Get quote by id

Get quote by numeric id.

GET /api/quote/<quoteid>

Response:

{
	"quote": STRING,
	"counter": INTEGER
}

Get random quote

Get random quote.

GET /api/quote/random

Response:

{
	"quote": STRING,
	"counter": INTEGER
}

Get top quote (most returned)

Get most resturned quote.

GET /api/quote/top

Response:

{
	"quote": STRING,
	"counter": INTEGER
}

Error response

Response returned in case the requested quote doesn't exist.

Response:

{
	"status": 404,
	"message": "Quote not found!"
}

About

Team3 WIC Contest Microservice repository

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published