Giter VIP home page Giter VIP logo

dimigo-petitions-back's Introduction

Dimigo-Petitions Python 3.7

Python의 비동기 웹 프레임워크인 Sanic을 사용; 프로젝트 구조와 문서화에 신경쓰며 개발하는 것이 목표

nohup uvicorn server:app --host 0.0.0.0 --port 5001

API 목차

로그인

디미고 계정으로 로그인

  • POST /auth/login
  • 처음 로그인하는 사용자의 경우, 공개 디미고인 API를 이용해서 사용자 정보를 가져옴

request

{
    "id": "test",
    "password": "test"
}
  • id: 사용자 아이디
  • password: 사용자 비밀번호

response

{
    "token": "(JWT 토큰)",
    "refresh_token": "-",
    "user": {
        "idx": 0,
        "name": "test",
        "grade": "1",
        "klass": "5",
        "number": "20",
        "serial": "1520",
        "photo": null,
        "email": "[email protected]",
        "user_type": "S"
    }
}
  • token: JWT 토큰
  • refresh_token
  • user
    • idx: 디미고인 계정에서의 idx(무시)
    • name: 학생 이름
    • grade: 학생 학년
    • klass: 학생 반
    • number: 학생 번호
    • serial: 학번
    • photo: 학생 사진
    • email: 학생 이메일
    • user_type: 회원 종류(학생은 S)

청원

청원 생성하기

  • POST /post/

request

response

{
    "post_id": "5cf268f6fff7002fc90b3ddf"
}

청원 조회하기

  • GET /post/{post_id}

청원 수정하기

  • PUT /post/{post_id}

청원 삭제하기

  • DELETE /post/{post_id}

dimigo-petitions-back's People

Contributors

imgbot[bot] avatar junhoyeo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

dimigo-petitions-back's Issues

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.