Coder Social home page Coder Social logo

bookathon_b's People

Contributors

chanholee275 avatar gidskql6671 avatar haesoo-y avatar seojinseojin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

bookathon_b's Issues

[docs] Github API를 사용할 수 있는 HTTP API

  • GET /user/{userId}/commits
    • 해당 유저의 최근 한달간 커밋수를 담은 배열을 json으로 응답한다.
    • [ { day: "2021-08-25", commit: 5 }, { day: "2021-08-26", commit: 6 }, ..., { day: "2021-09-24", commit: 10 } ]
    • day는 해당하는 날짜, commit은 그 날의 커밋수를 나타낸다.
  • GET /study/{teamId}/commits
    • 해당 팀의 모든 참가자의 당일 커밋수를 담은 배열을 json으로 응답한다.
    • [ { userId: String, commit: Integar }, { userId: String, commit: Integar }, ... ]
    • userId는 해당하는 팀원의 github id를 나타내며, commit은 그 팀원의 당일 커밋수를 나타낸다.

Login Failed

안녕하세요. 생활코딩에서 글을 보고

github 통해서 oauth 인증했는데, 로그인이 안되요.

계속 이창에서 인증받은 이메일로 로그인도 해보고 하는데 안되네요.

image

[backend] 스터디 참가, 퇴장 API 작성

  • 스터디 참가 PUT /study/enter?userId=${userId}&&teamId=${teamId}
  • 스터디 탈퇴 PUT /study/exit?userId=${userId}&&teamId=${teamId}

스터디 참가와 탈퇴는 team에 있는 userIds를 조작한다.
스터디 참가와 탈퇴는 상태만을 반환하고 따로 값을 반환하지 않는다.

[docs] 사용자 로그인용 HTTP API

  • GET /user
    • 현재 로그인된 유저의 정보를 json으로 보내준다.
    • json의 형식은 다음과 같다.
    • { email: string|null, nickName: string|null }
      • email : 알림을 받을 이메일
      • nickName : 다른 사람에게 보일 닉네임
      • OAuth 로그인을 처음한 상태라면, email과 nickName에 null이 들어가있다.
  • GET /auth/github
    • Github OAuth 로그인 페이지를 불러온다.
    • 로그인이 성공하면 쿠키와 세션을 통해 로그인을 관리한다.
    • 로그인 성공한 경우, 실패한 경우 모두 / 경로로 리다이렉트된다.
  • POST /auth/logout
    • 로그아웃을 한다.
    • Response로 보내는 값은 없다. HTTP 상태코드가 200이면 성공한 것.
  • POST /user/edit
    • 현재 로그인된 유저의 정보를 변경한다.
    • 로그인이 되어있지 않다면, 상태코드 401로 응답한다.
    • Request Body로 email과 nickName을 받는다.
    • email 혹은 nickName이 형식에 맞지 않는 경우, 상태 코드 400으로 응답한다.
    • email와 nickName이 적절할 경우, User정보를 업데이트하고, / 경로로 리다이렉트한다.

[backend] 스터디 그룹 관련 CRUD 작성

  1. 스터디 그룹 생성
    • POST /study
    • Body : { title: "title", details: "detail" ,password: "optional"}
  2. 스터디 그룹 삭제
    • DELETE /study/:teamId
  3. 스터디 그룹 수정
    • PUT /study/:teamId
    • Body : {title:"title"}
  4. 스터디 그룹 조회
    • GET /study?userId={userId}&title={title}

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.