Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 

Repository files navigation

MoneyLion Technical Assessment :

Please note that you are required to use Java as the language and ideally, Spring Boot as the framework.

User story:

Managing users’ accesses to new features via feature switches, i.e. enabling/disabling certain feature based on a user’s email and feature names.

Requirements:

  • GET /feature?email=XXX&featureName=XXX
    This endpoint receives email (user's email) and featureName as request parameters and return the following response in JSON format.

Example Response:

{
  "canAccess": true|false (will be true if the user has access to the featureName)
}
  • POST /feature
    This endpoint receives the following request in JSON format and returns an empty response with HTTP Status OK (200) when the database is updated successfully, otherwise returns Http Status Not Modified (304).

Example Request:

{
  "feature": "xxx", (string)
  "email": "xxx", (string)
  "enable": true|false (boolean) (uses true to enable a user's access, otherwise false)
}

About

Technical Assessment

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors