Home
Sign Up
Sign In
V2EX
›
问与答
推荐几个你觉得设计、构架比较好的 REST API?
11
·
Jan 18, 2017
· 2365 views
This topic created in 3579 days ago, the information mentioned may be changed or developed.
想学习整理下 REST API 设计实践,谢谢。
API
rest
构架
设计
7 replies
•
2017-01-21 08:41:36 +08:00
lhbc
Jan 18, 2017
1
github
https://developer.github.com/v3/
pushbullet
https://docs.pushbullet.com/
phpdever
Jan 18, 2017
2
嗯, github 算是比较好的了。
11
OP
Jan 18, 2017
3
@
lhbc
@
phpdever
想探讨个情况:
比如我需要对于一个 topic POST 一些 comment ,下面两种哪种比较好?
(1)
POST /topics/1/comments/
{
"text": "hello"
}
(2)
POST /comments/
{
"topic_id": 1,
"text": "hello"
}
a3mao
Jan 18, 2017
4
@
11
(1) 既然是 restful 那就是这个好
zoues
Jan 18, 2017 via iPhone
1
5
swager api 貌似
jininij
Jan 18, 2017 via Android
6
alipay
WeChat
11
OP
Jan 21, 2017
7
https://developer.uber.com/docs/riders/introduction
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2034 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 47ms ·
UTC 14:51
·
PVG 22:51
·
LAX 06:51
·
JFK 09:51
♥ Do have faith in what you're doing.
❯