Giter VIP home page Giter VIP logo

user-management's Introduction

User Management

An API for user management service

Build & Run

$ cd user-management
$ sbt
> jetty:start

The API runs on http://localhost:8080/. You can try it using curl or using REST Client app. After it runs, it will create user-management.db file inside the folder.

Tech stacks

  • Scalatra 2.12.10
  • SQLite 3
  • Slick 3.2.3

Assumptions

  • users table schema consists of id, userName, emailAddress, password, createdAt, updatedAt, blockedAt, and version.
  • userName and emailAddress are unique properties.
  • id is an integer starts from 1.
  • version starts from 1 once a new user is created and increments as it gets updated.

Simplifications

  • Deletion is a permanent operation.

Endpoints

The prefix for below endpoints is /api/*. Some of the endpoints require JSON format body for their parameters.

Method URI Description Body
GET users/ To get a list of all users
GET users/:id To get a specific user data by its id
POST users/signup To register a new user data into the DB userName: STRING, emailAddress: STRING, and password: STRING
POST users/:id/block To block a specific user by its id
POST users/:id/unblock To unblock a specific user by its id
POST users/:id/reset-password To reset the password of a user by its id
PUT users/:id To update a specific user data by its id At least one of emailAddress: STRING and password: STRING
DELETE users/:id To delete a specific user by its id

user-management's People

Contributors

krisnadiputra avatar

Watchers

 avatar  avatar  avatar

Forkers

anekos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.