Giter Club home page Giter Club logo

devbops_user_microservice's Introduction

User

User Frontend:

  • Note: "Action" attribute in both login and signup has to be either login or register

Login

  • Request method type: POST
{
    "Action" : "login",
    "Username": "{username}",
    "Password": "{password}",
}
  • Response: will be:
{
    'statusCode': 200,
    'Status': true or false,
    'Token': token or None,
    'Error': None or errorMessage
}

Signup

  • Request method type: POST
{
    "Action" : "register",
    "Username": "{username}",
    "Password": "{password}",
    "Email": "{email}",
    "FirstName": "{firstname}",
    "LastName": "{lastname}",
    "Country": "{country}",
    "City": "{city}"
}
  • Response: will be:
{
    'statusCode': 200,
    'Status': true or false,
    'Error': None or errorMessage
}

User Service Backend

Login

  • Your RESTapi with route /login will receive a json formated POST request like this
{
  "Username": "{username}",
  "Password": "{password}"
}

Please verify the password with db, then the expected return should be in dict, template shown below:

{
  "Result": True or False   
}

Note: True means verfied, False means either account error or password error.

Register

  • for register, your RESTapi with route "/register" you will receive a json formated POST request like this
{
  "Username": "{username}",
  "Password": "{password}",
  "Email": "{email}",
  "FirstName": "{firstname}",
  "LastName": "{lastname}",
  "Country": "{country}",
  "City": "{city}"   
}          

Please store in database, then expected return should be in dict, template shown below:

{
  "Result": True or False,
  "Error": None or errorMessage
}

Note: True means sucessfully signed up, False means something is wrong

Might add tests on api

devbops_user_microservice's People

Contributors

anishmoktan avatar camunity avatar dev-rahman96 avatar dolmagrg123 avatar hrgutou avatar qsyed avatar sadi-c avatar ssyed23 avatar

Forkers

dolmagrg123

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.