GithubHelp home page GithubHelp logo

greennerd / ideaegg Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 784 KB

Let your idea fly!

Home Page: http://ideaegg.me

Ruby 76.36% JavaScript 4.24% CoffeeScript 1.31% CSS 5.83% HTML 10.83% Nginx 0.29% Shell 1.14%

ideaegg's People

Contributors

fahchen avatar hutusi avatar hw676018683 avatar

Watchers

 avatar

ideaegg's Issues

Markdown

提供一个接口实时渲染 markdown 的结果

Preview

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>"
}

返回的 content 和 content_html 有问题

  {
    "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": []
  },

HEADER 请求失败

curl --header "PRIVATE-TOKEN: QVy1PB7sTxfy4pqfZM1U" "http://beta.ideaegg.me/api/v2/ideas"
请求返回 401

POST untag

POST 删除tag(DELETE 不能传参数)
DELETE /ideas/:id/tags -> POST /ideas/:id/tags

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.