offline-news-api:用于获取新闻的痛苦的简单 API

时间:2021-07-10 11:16:10
【文件属性】:
文件名称:offline-news-api:用于获取新闻的痛苦的简单 API
文件大小:11KB
文件格式:ZIP
更新时间:2021-07-10 11:16:10
JavaScript 离线新闻API 简单的 RESTful API,允许您逐项或以项目数组的形式获取新闻。 安装并运行 git clone git@github.com:matthew-andrews/offline-news-api.git cd offline-news-api npm install node index.js 文档 获取/故事 返回故事对象的数组 - 。 curl https://offline-news-api.herokuapp.com/stories 获取 /stories/:guid 返回具有给定 guid 的故事对象。 curl https://offline-news-api.herokuapp.com/stories/249271 财产 类型 描述 向导 细绳 唯一标识符,也是一个 URL 作者 细绳 故事的作者 标题 细绳 标题,通常是标题 身体 细绳
【文件预览】:
offline-news-api-master
----.travis.yml(358B)
----bin()
--------offline-news-api(41B)
----index.js(588B)
----package.json(2KB)
----test()
--------mocked-data.js(968B)
--------sample-rss.xml(21KB)
----Procfile(19B)
----.gitignore(31B)
----lib()
--------rss-source.js(1KB)
--------stories.js(499B)
----README.md(1KB)
----.jshintrc(23B)

网友评论