Skip to content

Spring Boot application using Spring WebFlux to expose and consume HTTP APIs in a reactive fashion.

License

Notifications You must be signed in to change notification settings

geovaneshimizu/starwiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StarWiki

Find out all characters of a Star Wars movie that are from the same species.

This service exposes a HTTP endpoint that, given both parameters film_id and character_id, consults the swapi.co API and returns a list of the characters of the film received as parameter that have the same species as the character received as parameter.

API Guide

jdtest resource

Get character names by film id and character id

GET /api/jdtest?film_id={filmId}&character_id={character_id}

HTTP request
GET /api/jdtest?film_id=1&character_id=2 HTTP/1.1
Accept: application/json;charset=UTF-8
HTTP response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8

[
  "C-3PO",
  "R2-D2",
  "R5-D4"
]

Developing

System Requirements

  • Java 1.8+

Building

$ ./mvnw clean install

Running

$ java -jar target/starwiki-0.0.1-SNAPSHOT.jar

Configuration

Environment variables that can be set to change the application configuration.

Name Description Optional Default
STARWIKI_REPOSITORY_SWAPI_BASE_URL Base URL of the swapi.co API. true https://swapi.co/api

About

Spring Boot application using Spring WebFlux to expose and consume HTTP APIs in a reactive fashion.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages