Coder Social home page Coder Social logo

spring-boot-mongodb-sample's Introduction

spring-boot-mongodb-sample

Thing to do :

  1. Clone this repo : git clone https://github.com/hendisantika/spring-boot-mongodb-sample.git
  2. Go to it's folder : cd spring-boot-mongodb-sample
  3. Run this app : mvn clean spring-boot:run

Spring Boot MongoDB APIs

We will have following functionalities and Database interactions in our app.

  • Get all users
  • Get a user with ID
  • Get user settings
  • Get a particular key from the Map
  • Add/Update user setting

Add new user

GET /user/create

Request :

http://localhost:8080/user/create

{
  "name" : "Naruto",
  "userSettings" : {
    "bike" : "pulsar"
  }
}

Response :

{
    "userId": "5c4b8fc5a9a150cda57115d8",
    "name": "Uzumaki Naruto",
    "creationDate": "2019-01-25T22:37:57.362+0000",
    "userSettings": {
        "bike": "pulsar"
    }
}

Add new User

Get All Users : http://localhost:8080/user/

List All Users

Get User setting : http://localhost:8080/user/settings/{userId}

Get User setting

spring-boot-mongodb-sample's People

Contributors

hendisantika 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.