8000 GitHub - msartiano/java-exercise
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

msartiano/java-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Image Finder

Brief

We would like to build a Java application which allows others to find images by a search term.

A basic service would have the following functionalities:

  • Ability to fetch data from an external image searching API
  • Transform and filter the data
  • Create an endpoint to allow retrieval of the transformed data

The external API will be NASA's media searching API:

https://images-api.nasa.gov/search?q=moon

Here is an example of the payload:

{
  "collection": {
    "href": "https://images-api.nasa.gov/search?q=moon",
    "version": "1.0",
    "items": [
      {
        "href": "https://images-assets.nasa.gov/image/PIA12235/collection.json",
        "data": [ ... ],
        "links": [
          {
            "href": "https://images-assets.nasa.gov/image/PIA12235/PIA12235~thumb.jpg",
            "render": "image",
            "rel": "preview"
          }
        ]
      }
    ]
  }
}

Here is what we expect our service to return:

[
  "https://images-assets.nasa.gov/image/PIA12235/PIA12235~thumb.jpg",
  "https://images-assets.nasa.gov/image/PIA13517/PIA13517~thumb.jpg",
  ...
]

We could plan to extend the service by introducing:

  • Add test coverage
  • Build a frontend to display the images

How to start

Using the IDE of your choice, please initialise a starting Spring Repository using Gradle or Maven.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0