Skip to content

Quiz posted on square's jobs website for the position of Software Engineer - Payments Platform

Notifications You must be signed in to change notification settings

michaelelias/SquarePaymentsPlatformSoftwareEngineerQuiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Given the REST API defined below, write a Rack middleware, Java servlet, or equivalent proxy to log the moving average and variance of the response status codes grouped by their class (2xx, 4xx, etc).
 
  - PUT /locations/:location_id
  - GET /locations/:location_id
  - DELETE /locations/:location_id
 
Assume the service is only available over HTTPS and that the API returns standard HTTP status codes, i.e., 5xx for internal server errors, 4xx for client request errors, 2xx for success, and 3xx for redirection. Bonus points: implementing the API in question, and adding authentication to the API.

--------------------------------------------------

The solution : A Java Web application that implements the location REST API over HTTPS and is protected by basic authentication or OAuth

Usage : start the app using the maven command : mvn jetty:run . Sample commands can be found in the commands file

About

Quiz posted on square's jobs website for the position of Software Engineer - Payments Platform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages