Giter VIP home page Giter VIP logo

spring-boot-mongodb's Introduction

spring-boot-mongodb

Spring Boot RestFull application with MongoDB.

Steps to run the project

  1. Download The Project
  2. Go to the project folder
  3. Run following command
    mvn eclipse:eclipse
    
    mvn clean compile
    
    mvn spring-boot:run
    

Create Users Service

Request Type - GET Request URL :

http://localhost:8888/users/[email protected]&userName=Bhupesh SIngh Padiyar&password=welcome1&role=Admin

Response -

{
    "user": {
        "id": "5bc6aebb99af53197c230297",
        "userId": "[email protected]",
        "userName": "Bhupesh SIngh Padiyar",
        "password": "welcome1",
        "role": "Admin",
        "createdDate": "2018-10-17T03:38:35.675+0000",
        "updateDate": null
    },
    "message": "User created successfully",
    "status": "1"
}

Read User By Id Service

Request Type - GET Request URL :

http://localhost:8888/users/read?id=5bc6aebb99af53197c230297
Response: 
{
    "message": "User found successfully",
    "user": {
        "id": "5bc6aebb99af53197c230297",
        "userId": "[email protected]",
        "userName": "Bhupesh SIngh Padiyar",
        "password": "welcome1",
        "role": "Admin",
        "createdDate": "2018-10-17T03:38:35.675+0000",
        "updateDate": null
    },
    "status": "1"
}

Read User All Users Service

Request Type - GET Request URL :

http://localhost:8888/users/read-all

Response:

{
    "message": "Users found successfully",
    "users": [
        {
            "id": "5bc6aebb99af53197c230297",
            "userId": "[email protected]",
            "userName": "Bhupesh SIngh Padiyar",
            "password": "welcome1",
            "role": "Admin",
            "createdDate": "2018-10-17T03:38:35.675+0000",
            "updateDate": null
        },
        {
            "id": "5bc6b38199af5309d029d54b",
            "userId": "[email protected]",
            "userName": "Ram",
            "password": "welcome2",
            "role": "User",
            "createdDate": "2018-10-17T03:58:57.214+0000",
            "updateDate": null
        }
    ],
    "status": "1"
}

Delete an User Service

Request Type - GET Request URL :

http://localhost:8888/users/delete?id=5bc6b38199af5309d029d54b

Response:

{
    "message": "User deleted successfully",
    "status": "1"
}

spring-boot-mongodb's People

Contributors

bhupeshpadiyar avatar

Watchers

James Cloos avatar  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.