Skip to content

Instantly share code, notes, and snippets.

View ractive's full-sized avatar

Jean-Pierre Bergamin ractive

View GitHub Profile

Full Stack Engineer - Remote Coding Session

Web application

Write a web application that displays the following details about a place (e.g. a restaurant):

  • name
  • address
  • opening hours

The information about the place is fetched from a backend service by providing an id of the place.

import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import javax.servlet.http.HttpServletRequest;
import org.springframework.security.authentication.AuthenticationTrustResolver;
import org.springframework.security.authentication.AuthenticationTrustResolverImpl;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;