Giter VIP home page Giter VIP logo

demoservice's Introduction

Readme

The project is constructed in Spring framework. To execute the application, run src/main/java/com/example/demo/DemoApplication.java

All APIs implemented accepts input as request body in JSON format. Below illustrate the URL and keys accepted. URL in "./xxx" format, the "./" means the root URL for your Spring host.

All APIs can be tested using the Postman collection file. In the provided collection the root URL is http://localhost:8080.

  1. ./createUser Corresponding to the service requirement No. 1 Create user
    • username - String, representing the username
    • password - String, the plaintext of password, will not be stored in system
  2. ./deleteUser Corresponding to the service requirement No. 2 Delete user
    • username - String, representing the username
    • password - String, the plaintext of password, will not be stored in system
  3. ./createRole Corresponding to the service requirement No. 3 Create role
    • roleName - String, representing the role name
  4. ./deleteRole Corresponding to the service requirement No. 4 Delete role
    • roleName - String, representing the role name
  5. ./assignRole Corresponding to the service requirement No. 5 Add role to user
    • username - String, representing the username
    • roleName - String, representing the role name
  6. ./authentication Corresponding to the service requirement No. 6 Authenticate
    • username - String, representing the username
    • password - String, the plaintext of password, will not be stored in system
  7. ./invalidate Corresponding to the service requirement No. 7 Invalidate
    • token - String, representing the token string to pass authentication
  8. ./checkRole Corresponding to the service requirement No. 8 Check role
    • token - String, representing the token string to pass authentication
    • roleName - String, representing the role name
  9. ./allRoles Corresponding to the service requirement No. 9 All roles
    • token - String, representing the token string to pass authentication

###Please note The web service API accepts different input values than the Spring service. In the Spring service class, the code accepts exactly the same input as the document illustrated. Difference in inputs happens for item 2, 4, 5, 8.

The provided java unit tests are for Spring service only.

demoservice's People

Contributors

fatotter avatar

Watchers

 avatar

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.