Giter Club home page Giter Club logo

bihu's Introduction

#逼乎后端API文档 v1.0.0 ##常规API调用原则

  • 所有API都以'domain.com/api/...'开头
  • API分为两个部分 如'domain.com/api/part_1/part_2'
    • 'part_1'为model名称 如'user'或'question'
    • 'part_2'为行为的名称,如'rest_password'
  • CRUD
    • 每个model都会有增删改查四个方法,分别对应为'add','remove','change','read'

Model

Question

字段解释

  • 'id'
  • 'title':标题
  • 'desc':描述

'add'

  • 权限:已登录
  • 传参:
    • 必填:'title'
    • 可选:'desc'

'change'

  • 权限:'已登录缺位问题的所有者'
  • 传参:
    • 必填:'id'
    • 可选:'title','desc'

bihu's People

Watchers

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