Coder Social home page Coder Social logo

devcenter's Introduction

三个访问接口

  • 请求用户的主题文章列表(目前15个主题)

return: JSON { themeName: XXXXX, //主题名 themeId: XXXXXX, //主题发ID号 1,2,3,,,,15 img: http://XXXX.jpg, //theme img's absolute path in server, e.g. www/1.jpg abort: "XXXX", //200标识成功返回 100标识请求失败(最好用status) maxThemeNum: XXXX, //有多少主题(目前15个) ainfos: [ { articleId: XXXXX, //文章ID号 title: XXXXX, //文章标题 author: XXXXX, //作者 img: http://XXX.jpg,//图片 text: string, //文章关键字 timestamp: datatime, //创建时间 readingNum: XXX, //阅读量 supportNum: XXXXX, //点赞数 commentNum: iXXXX //评论数 }, { articleId: XXXXX, //文章ID号 title: XXXXX, //文章标题 author: XXXXX, //作者 img: http://XXX.jpg,//图片 text: string, //文章关键字 timestamp: datatime, //创建时间 readingNum: XXX, //阅读量 supportNum: XXXXX, //点赞数 commentNum: iXXXX //评论数 },

]

}

{ articleId: XXX, //评论文章的ID userId: XXXXX, //评论用户的ID(暂时用用户名) themeId: XXXX, //评论主题ID content: XXXX, //评论内容

} return :JSON { status: 100/200 //200表示评论成功,100表示评论失败 }

devcenter's People

Watchers

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