greennerd / ideaegg Goto Github PK
View Code? Open in Web Editor NEWLet your idea fly!
Home Page: http://ideaegg.me
Let your idea fly!
Home Page: http://ideaegg.me
提供一个接口实时渲染 markdown 的结果
POST /markdown/preview
params:
content
: string
example:
POST /markdown/preview HTTP/1.1
Content-Type: application/json
{
"content": "### **南方湿气重\n\n**特别是4月份的回南天**,如果忘了关窗户,那就是场灾难。\n\n- 家居衣物沙发\n- 该发霉的发霉\n- 该倒霉的倒霉\n\n所以能够根据空气中的湿度情况进行智能判断处理,相信对不少用户来说是个福音。针对人的舒适度而言,相信温湿度一定会有一个合适的范围,但要避免出现类似夏天空调病的局面,三天两头要靠拔火罐来祛湿。 所以,有这么一款产品,夏天干燥,能提醒加湿;空调房内湿度太湿,提醒抽湿;回南天气到来前几天,预警判断提示关窗等;\n\n![screenshot](https://d13yacurqjgara.cloudfront.net/users/4825/screenshots/2067278/matinee.jpg)"
}
HTTP/1.1 200 OK
Content-Type: application/json
{
"content": "<h3>**南方湿气重</h3><p><strong>特别是4月份的回南天</strong>,如果忘了关窗户,那就是场灾难。</p><ul><li>家居衣物沙发</li><li>该发霉的发霉</li><li>该倒霉的倒霉</li></ul><p>所以能够根据空气中的湿度情况进行智能判断处理,相信对不少用户来说是个福音。针对人的舒适度而言,相信温湿度一定会有一个合适的范围,但要避免出现类似夏天空调病的局面,三天两头要靠拔火罐来祛湿。 所以,有这么一款产品,夏天干燥,能提醒加湿;空调房内湿度太湿,提醒抽湿;回南天气到来前几天,预警判断提示关窗等;</p><p><img src='https://d13yacurqjgara.cloudfront.net/users/4825/screenshots/2067278/matinee.jpg' alt='screenshot' /></p>"
}
用 POST
删除tag(DELETE 不能传参数)
DELETE /ideas/:id/tags
-> POST /ideas/:id/tags
name: 大白
更新头像
{
"id": 78,
"title": "这是一个测试标题",
"cover": null,
"summary": null,
"content": "<P>使用纯文本加html tag 标记</P>",
"content_html": null,
"stars_count": 0,
"comments_count": 0,
"votes_count": 0,
"author": {
"id": 104,
"username": "ideaegg2",
"email": "[email protected]",
"fullname": "ideaegg2",
"created_at": "2015-04-12T17:53:25.237Z",
"phone_number": null,
"avatar": null
},
"tags": []
},
你可以也看看这个 gem:https://github.com/jch/html-pipeline
粤ICP备13069755号-1
在返回的 idea 数据里面添加上 是否被当前用户 收藏 和 点赞
的属性
curl --header "PRIVATE-TOKEN: QVy1PB7sTxfy4pqfZM1U" "http://beta.ideaegg.me/api/v2/ideas"
请求返回 401
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.