Giter VIP home page Giter VIP logo

realworld-springboot-backend's People

Contributors

100paperkite avatar alonski avatar ericsimons avatar esakkiraj avatar geromegrignon avatar optikfluffel avatar segmentationfaulter avatar

realworld-springboot-backend's Issues

Implement User Login API

User 로그인 기능을 구현한다.

API

POST /api/users/login

Body

{
  "user":{
    "email": "[email protected]",
    "password": "jakejake"
  }
}

Returns

  • 로그인 성공 시, User를 JSON으로 반환한다.
  • Content-Type: application/json; charset=utf-8
{
  "user": {
    "email": "[email protected]",
    "token": "jwt.token.here",
    "username": "jake",
    "bio": "I work at statefarm",
    "image": null
  }
}

Implement User Registration

User 회원가입 기능을 구현한다.

API

POST /api/users

Body

{
  "user":{
    "username": "Jacob",
    "email": "[email protected]",
    "password": "jakejake"
  }
}

Returns

  • 가입 성공 시, User를 JSON으로 반환한다.
  • Content-Type: application/json; charset=utf-8

Implement Get Current User, Update User API

API

Authentication required

GET /api/user

returns User

PUT /api/user

request

  "user":{
    "email": "[email protected]",
    "bio": "I like to skateboard",
    "image": "https://i.stack.imgur.com/xHWG8.jpg"
  }}

Accepted fields: email, username, password, image, bio

returns User

Add unit tests of User

User 도메인에서 빠진 유닛 테스트를 추가하자

  • UserService
  • UserRepository

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.