Skip to content

yhlim19/MoneyLion-Technical-Assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ML-Technical-Assessment

Description

A web API to manage users's accesses to new features via feature switches. AI Engineer technical assessment for MoneyLion.

Features

1. Get

This endpint receives email and featureName as request parameters and returns the following response in JSON format. The response is true if the user has access to the featureName and false otherwise.

Example:

  • Generate request in HTTP client:

    image

  • Response:

    image

2. Post

This endpoint receives the request in JSON format and returns an empty response with HTTP Status OK (200) when the database is updated successfully with the feature registerd by new user, otherwise returns HTTP Status Not Modified (304).

Example:

  • Generate request in HTTP client:

    image

  • Response:

    image

3. Put

  • This endpoint acts as a switch to enable or disable users' accesses to certain features by receiving email, featureName and enable as request parameters. It returns an empty response with HTTP Status OK (200) when the enable parameter is updated successfully for target email and feature, otherwise returns HTTP Status Not Modified (304).

Example:

  • Generate request in HTTP client:

    image

  • Response:

    image

Technologies

Project is created with:

  • Java version: 17
  • Spring Boot version: 2.6.7

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages