All Projects → anotheros → readthis-api

anotheros / readthis-api

Licence: other
100000p.com

Projects that are alternatives of or similar to readthis-api

Jersey 2.x User Guide
Jersey 2.x User Guide《Jersey 2.x 用户指南》 ,中文翻译
Stars: ✭ 235 (+1282.35%)
Mutual labels:  restful-api
monero-merchant
Monero Merchant is a RESTful API wrapper for the official Monero wallet RPC. This project is mainly for merchants who hope to accept Monero as payment, which is currently the most robust and privacy-oriented cryptocurrency with extremely low transaction fees.
Stars: ✭ 27 (+58.82%)
Mutual labels:  restful-api
Text Classification TF
用tf实现各种文本分类模型,并且封装restful接口,可以直接工程化
Stars: ✭ 32 (+88.24%)
Mutual labels:  restful-api
Clevergo
👅 CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
Stars: ✭ 246 (+1347.06%)
Mutual labels:  restful-api
kotlin-ktor-exposed-sample-api
Kotlin Ktor Exposed SQL Immutable DB Rest API
Stars: ✭ 44 (+158.82%)
Mutual labels:  restful-api
frame-backend
Frame API Build on JSON Web Tokens
Stars: ✭ 15 (-11.76%)
Mutual labels:  restful-api
Go Mysql Crud
Example crud operation using Golang and MySql
Stars: ✭ 228 (+1241.18%)
Mutual labels:  restful-api
Jonty.Blog
🎯Jonty.Blog个人博客项目,底层基于免费开源跨平台的.NET Core 3.1开发,使用 ABP vNext搭建项目框架,支持主流数据库,遵循RESTful接口规范,前端使用Blazor开发。
Stars: ✭ 42 (+147.06%)
Mutual labels:  restful-api
M-Volunteer-SpringBoot
美志愿APP服务端,客户端在https://github.com/learner1999/M-Volunteer
Stars: ✭ 52 (+205.88%)
Mutual labels:  restful-api
go-zero
A cloud-native Go microservices framework with cli tool for productivity.
Stars: ✭ 23,294 (+136923.53%)
Mutual labels:  restful-api
Woocommerce.net
A .NET Wrapper for WooCommerce/WordPress REST API
Stars: ✭ 247 (+1352.94%)
Mutual labels:  restful-api
Http Fake Backend
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 253 (+1388.24%)
Mutual labels:  restful-api
vbo365-rest-self-service
Unofficial Self-Service Web Portal for Veeam Backup for Microsoft Office 365
Stars: ✭ 24 (+41.18%)
Mutual labels:  restful-api
Restairline
DDD+CQRS+EventSourcing+Hypermedia API+ASP.NET Core 3.1+Masstransit+terraform+docker+k8s
Stars: ✭ 243 (+1329.41%)
Mutual labels:  restful-api
go-pangu
rest api web server based on go(High availability, high security, high performance)
Stars: ✭ 45 (+164.71%)
Mutual labels:  restful-api
Crnk Framework
JSON API library for Java
Stars: ✭ 234 (+1276.47%)
Mutual labels:  restful-api
laravel-admin
LaravelAdmin是基于PHP开发的基础管理后台系统,做到开箱即用,为新项目开发省去了基础功能开发的步骤;此系统采用前后端分离模式,后端使用Laravel,前端使用vue;主要包含:登录、注销、可视化数据大屏、管理员、角色管理、菜单管理、权限管理、错误日志、登录日志、访问日志、获取服务器CPU使用率、内存使用率等功能。后端主要使用Artisan命令行、Jobs消息队列、 Rules验证规则、Restful API、Composer扩展包、Redis秒杀、Extend自定义扩展类:微信授权、钉钉告警推送、MongoDB、阿里云OSS、七牛云存储、七牛云直播、php-jwt TOKEN、Phpoffice、MySql数据库字典、Elasticsearch等技术。
Stars: ✭ 45 (+164.71%)
Mutual labels:  restful-api
go-api-basic
A Go RESTful API template
Stars: ✭ 313 (+1741.18%)
Mutual labels:  restful-api
open-rest-es6-boilerplate
open-rest boilerplate project with es6
Stars: ✭ 24 (+41.18%)
Mutual labels:  restful-api
mezon
Mezon is a simple php framework wich will help you to create business applications.
Stars: ✭ 35 (+105.88%)
Mutual labels:  restful-api

Readthis API 文档

Readthis

android 端移步此处

ios 端移步到此处

白皮书

功能点

手绘图

ui设计图

产品方向目标

lite版本需求说明

api 根目录 api.100000p.com

注意 该api 支持 http2 。 http2 比http1.1 更强悍。

API 文档

👉👉👉修改记录日志必看👈👈👈

注册

授权

时间线

文章

根据url查文章

用户

个性域名

微刊

社群

标签

远程页面

Android 更新api

设置页面 api

设计规范

Readthis 的 API 遵循现代 RESTful API 设计规范.

我不想bb什么是restful了。看下面

api风格 参考

阮一峰博客

ios对应风格api 参考

这有一本书 iOS Apps with REST APIs

api约定

  1. 请求list列表时 都需要带上参数,size。 返回时,头部都会返回 count: 个数。

  2. 如果查询只要id,则 在原来地址请求的对象下 加 _id 即可。文档中没有体现

例如 /v2/collections/:collectionId/articles_id 表示查某一微刊下的所有文章的id。

  1. 当返回文章数组时候,不包括文章内容body字段。当返回单个文章时,返回body字段。

问题汇总。

1.分页问题。

使用游标。取列表最后一个的id,作为下一个请求的cursor参数。

第一次请求 20 条,显示10条,另外10条缓存起来,然后 加载更多的时候,从缓存中取出10条;然后从服务器请求10条 放缓存里。如果返回没有数据,则认为到达底部。这样好处是 体验上感觉很快。

2.登录问题

需要登录才能访问的api,如果没有登录,则返回 401 状态码。

登录需要在header里 写入 Token 。 Linux curl 示意,

curl -H "Token: xxxxx" http://xxxxx

所有api最好都带上 Token,除了注册登录。

3.返回415 怎么办。 http 头 需要加上

Content-type: application/json;charset=UTF-8

4.错误信息 从返回的 header 里的 code 里取得 错误码,body 返回如下实体。含义如下。

点这里查看 404 的例子

{
"httpCode": 2003,
"httpMsg": "没有这个文章"
}
code 中文 英文
1001 校验码不能为空 code is not empty
1002 email不能为空 email is not empty
1003 注册失败 regist is fail
1004 token 失效或者不正确 token is illegal
1005 密码不正确或者用户不存在 Email does not exist or password is incorrect
1006         用户名不可用 username does exist
2001 收藏夹名字不能为空 collections name can not be null
2002 没有这个收藏夹 this collections does not exist
2003 没有这个文章 this article does not exist
2004 这个文章已经存在 this article does exist
2005 url地址在黑名单中 this article in the blacklist
2006 没有在这个收藏夹中找到该文章 this article not in this collections
2007         没有在这个标签 tag does not exist
2008         收藏夹名字已经存在 collections name does exist
2009         收藏夹id不能为空 collectionsid can not be null
3001         未找到该用户 this user does not exist
4001 社群名字不能为空 community name can not be null
4006 没有在这个社群中找到该文章 this article not in this community
4008         社群名字已经存在 community name does exist
4009         社群id不能为空 community can not be null
9001 参数校验不合法 Illegal parameter calibration
9401 没有登录 not login
9403 没有权限 not auth
9404 未找到 not fond
9507 服务器存储失败 Insufficient Storage
9999         其他系统错误 system error
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].