tests: Use PSR-4-style namespaces (#2778)

We cannot yet switch to namespaces for RSS-Bridge itself but for tests we are not limited by BC.
It does not actually do anything since PHPUnit will search for the test files without the help of the autoloader but it still makes the directory cleaner.
This commit is contained in:
Jan Tojnar 2022-06-07 23:22:33 +02:00 committed by GitHub
parent 90d22f0d80
commit 44e8007d9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 34 additions and 4 deletions

View file

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<title type="text">Sample feed with common data</title>
<id>https://example.com/feed?type=common&amp;items=4</id>
<icon>https://example.com/logo.png</icon>
<logo>https://example.com/logo.png</logo>
<updated>2000-01-01T12:00:00+00:00</updated>
<author>
<name>RSS-Bridge</name>
</author>
<link href="https://example.com/blog/" rel="alternate" type="text/html"/>
<link href="https://example.com/feed?type=common&amp;items=4" rel="self" type="application/atom+xml"/>
<entry>
<title type="html">Test Entry</title>
<published>2018-12-01T12:00:00+00:00</published>
<updated>2018-12-01T12:00:00+00:00</updated>
<id>http://example.com/blog/test-entry</id>
<link href="http://example.com/blog/test-entry" rel="alternate" type="text/html"/>
<author>
<name>fulmeek</name>
</author>
<content type="html">Hello world, this is a test entry.</content>
<category term="test"/>
<category term="Hello World"/>
<category term="example"/>
</entry>
<entry>
<title type="html">Announcing JSON Feed</title>
<published>2017-05-17T13:02:12+00:00</published>
<updated>2017-05-17T13:02:12+00:00</updated>
<id>https://jsonfeed.org/2017/05/17/announcing_json_feed</id>
<link href="https://jsonfeed.org/2017/05/17/announcing_json_feed" rel="alternate" type="text/html"/>
<author>
<name>Brent Simmons and Manton Reece</name>
</author>
<content type="html">&lt;p&gt;We — Manton Reece and Brent Simmons — have noticed that JSON has become the developers choice for APIs, and that developers will often go out of their way to avoid XML. JSON is simpler to read and write, and its less prone to bugs.&lt;/p&gt;
&lt;p&gt;So we developed JSON Feed, a format similar to &lt;a href="http://cyber.harvard.edu/rss/rss.html"&gt;RSS&lt;/a&gt; and &lt;a href="https://tools.ietf.org/html/rfc4287"&gt;Atom&lt;/a&gt; but in JSON. It reflects the lessons learned from our years of work reading and publishing feeds.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://jsonfeed.org/version/1"&gt;See the spec&lt;/a&gt;. Its at version 1, which may be the only version ever needed. If future versions are needed, version 1 feeds will still be valid feeds.&lt;/p&gt;
&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;We have a &lt;a href="https://github.com/manton/jsonfeed-wp"&gt;WordPress plugin&lt;/a&gt; and, coming soon, a JSON Feed Parser for Swift. As more code is written, by us and others, well update the &lt;a href="https://jsonfeed.org/code"&gt;code&lt;/a&gt; page.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://jsonfeed.org/mappingrssandatom"&gt;Mapping RSS and Atom to JSON Feed&lt;/a&gt; for more on the similarities between the formats.&lt;/p&gt;
&lt;p&gt;This website — the Markdown files and supporting resources — &lt;a href="https://github.com/brentsimmons/JSONFeed"&gt;is up on GitHub&lt;/a&gt;, and youre welcome to comment there.&lt;/p&gt;
&lt;p&gt;This website is also a blog, and you can subscribe to the &lt;a href="https://jsonfeed.org/xml/rss.xml"&gt;RSS feed&lt;/a&gt; or the &lt;a href="https://jsonfeed.org/feed.json"&gt;JSON feed&lt;/a&gt; (if your reader supports it).&lt;/p&gt;
&lt;p&gt;We worked with a number of people on this over the course of several months. We list them, and thank them, at the bottom of the &lt;a href="https://jsonfeed.org/version/1"&gt;spec&lt;/a&gt;. But — most importantly — &lt;a href="http://furbo.org/"&gt;Craig Hockenberry&lt;/a&gt; spent a little time making it look pretty. :)&lt;/p&gt;</content>
</entry>
<entry>
<title type="html">Atom draft-07 snapshot</title>
<published>2005-07-31T12:29:29+00:00</published>
<updated>2005-07-31T12:29:29+00:00</updated>
<id>urn:sha1:dd6b6c920d3b340ab9e07faf6682f2a7c4f70134</id>
<link href="http://example.org/2005/04/02/atom" rel="alternate" type="text/html"/>
<author>
<name>Mark Pilgrim</name>
</author>
<content type="html">&lt;p&gt;&lt;i&gt;[Update: The Atom draft is finished.]&lt;/i&gt;&lt;/p&gt;</content>
<link rel="enclosure" type="audio/mpeg" href="http://example.org/audio/ph34r_my_podcast.mp3"/>
</entry>
<entry>
<title type="html">Star City</title>
<published>2003-06-03T09:39:21+00:00</published>
<updated>2003-06-03T09:39:21+00:00</updated>
<id>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</id>
<link href="http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp" rel="alternate" type="text/html"/>
<content type="html">How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's &lt;a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm"&gt;Star City&lt;/a&gt;.</content>
</entry>
</feed>

View file

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<title type="text">Sample feed with minimum data</title>
<id>https://example.com/feed</id>
<icon>https://github.com/favicon.ico</icon>
<logo>https://github.com/favicon.ico</logo>
<updated>2000-01-01T12:00:00+00:00</updated>
<author>
<name>RSS-Bridge</name>
</author>
<link href="https://github.com/RSS-Bridge/rss-bridge/" rel="alternate" type="text/html"/>
<link href="https://example.com/feed" rel="self" type="application/atom+xml"/>
</feed>

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<title type="text">Sample feed with minimum data</title>
<id>https://example.com/feed</id>
<icon>https://github.com/favicon.ico</icon>
<logo>https://github.com/favicon.ico</logo>
<updated>2000-01-01T12:00:00+00:00</updated>
<author>
<name>RSS-Bridge</name>
</author>
<link href="https://github.com/RSS-Bridge/rss-bridge/" rel="alternate" type="text/html"/>
<link href="https://example.com/feed" rel="self" type="application/atom+xml"/>
<entry>
<title type="html">Sample Item #1</title>
<published>2000-01-01T12:00:00+00:00</published>
<updated>2000-01-01T12:00:00+00:00</updated>
<id>urn:sha1:29f59918d266c56a935da13e4122b524298e5a39</id>
<content type="html"> </content>
</entry>
<entry>
<title type="html">Sample Item #2</title>
<published>2000-01-01T12:00:00+00:00</published>
<updated>2000-01-01T12:00:00+00:00</updated>
<id>urn:sha1:edf358cad1a7ae255d6bc97640dd9d27738f1b7b</id>
<content type="html"> </content>
</entry>
</feed>

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<title type="text">Sample microblog feed</title>
<id>https://example.com/feed</id>
<icon>https://example.com/logo.png</icon>
<logo>https://example.com/logo.png</logo>
<updated>2000-01-01T12:00:00+00:00</updated>
<author>
<name>RSS-Bridge</name>
</author>
<link href="https://example.com/blog/" rel="alternate" type="text/html"/>
<link href="https://example.com/feed" rel="self" type="application/atom+xml"/>
<entry>
<title type="html">Oh 😲 I found three monkeys 🙈🙉🙊</title>
<published>2018-10-07T16:53:03+00:00</published>
<updated>2018-10-07T16:53:03+00:00</updated>
<id>urn:sha1:1918f084648b82057c1dd3faa3d091da82a6fac2</id>
<content type="html">Oh 😲 I found three monkeys 🙈🙉🙊</content>
</entry>
<entry>
<title type="html">Something happened</title>
<published>2018-10-07T16:38:17+00:00</published>
<updated>2018-10-07T16:38:17+00:00</updated>
<id>urn:sha1:e62189168a06dfa74f61c621c79c33c4c8517e1f</id>
<content type="html">Something happened</content>
</entry>
</feed>

View file

@ -0,0 +1,51 @@
{
"version": "https://jsonfeed.org/version/1",
"title": "Sample feed with common data",
"home_page_url": "https://example.com/blog/",
"feed_url": "https://example.com/feed?type=common&items=4",
"icon": "https://example.com/logo.png",
"favicon": "https://example.com/logo.png",
"items": [
{
"id": "http://example.com/blog/test-entry",
"url": "http://example.com/blog/test-entry",
"title": "Test Entry",
"date_modified": "2018-12-01T12:00:00+00:00",
"author": {
"name": "fulmeek"
},
"content_text": "Hello world, this is a test entry.",
"tags": ["test", "Hello World", "example"]
},{
"id": "https://jsonfeed.org/2017/05/17/announcing_json_feed",
"url": "https://jsonfeed.org/2017/05/17/announcing_json_feed",
"title": "Announcing JSON Feed",
"date_modified": "2017-05-17T13:02:12+00:00",
"author": {
"name": "Brent Simmons and Manton Reece"
},
"content_html": "<p>We — Manton Reece and Brent Simmons — have noticed that JSON has become the developers choice for APIs, and that developers will often go out of their way to avoid XML. JSON is simpler to read and write, and its less prone to bugs.</p>\n\n<p>So we developed JSON Feed, a format similar to <a href=\"http://cyber.harvard.edu/rss/rss.html\">RSS</a> and <a href=\"https://tools.ietf.org/html/rfc4287\">Atom</a> but in JSON. It reflects the lessons learned from our years of work reading and publishing feeds.</p>\n\n<p><a href=\"https://jsonfeed.org/version/1\">See the spec</a>. Its at version 1, which may be the only version ever needed. If future versions are needed, version 1 feeds will still be valid feeds.</p>\n\n<h4>Notes</h4>\n\n<p>We have a <a href=\"https://github.com/manton/jsonfeed-wp\">WordPress plugin</a> and, coming soon, a JSON Feed Parser for Swift. As more code is written, by us and others, well update the <a href=\"https://jsonfeed.org/code\">code</a> page.</p>\n\n<p>See <a href=\"https://jsonfeed.org/mappingrssandatom\">Mapping RSS and Atom to JSON Feed</a> for more on the similarities between the formats.</p>\n\n<p>This website — the Markdown files and supporting resources — <a href=\"https://github.com/brentsimmons/JSONFeed\">is up on GitHub</a>, and youre welcome to comment there.</p>\n\n<p>This website is also a blog, and you can subscribe to the <a href=\"https://jsonfeed.org/xml/rss.xml\">RSS feed</a> or the <a href=\"https://jsonfeed.org/feed.json\">JSON feed</a> (if your reader supports it).</p>\n\n<p>We worked with a number of people on this over the course of several months. We list them, and thank them, at the bottom of the <a href=\"https://jsonfeed.org/version/1\">spec</a>. But — most importantly — <a href=\"http://furbo.org/\">Craig Hockenberry</a> spent a little time making it look pretty. :)</p>"
},{
"id": "dd6b6c920d3b340ab9e07faf6682f2a7c4f70134",
"url": "http://example.org/2005/04/02/atom",
"title": "Atom draft-07 snapshot",
"date_modified": "2005-07-31T12:29:29+00:00",
"author": {
"name": "Mark Pilgrim"
},
"content_html": "<p><i>[Update: The Atom draft is finished.]</i></p>",
"attachments": [
{
"url": "http://example.org/audio/ph34r_my_podcast.mp3",
"mime_type": "audio/mpeg"
}
]
},{
"id": "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp",
"url": "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp",
"title": "Star City",
"date_modified": "2003-06-03T09:39:21+00:00",
"content_html": "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href=\"http://howe.iki.rssi.ru/GCTC/gctc_e.htm\">Star City</a>."
}
]
}

View file

@ -0,0 +1,7 @@
{
"version": "https://jsonfeed.org/version/1",
"title": "Sample feed with minimum data",
"home_page_url": "https://github.com/RSS-Bridge/rss-bridge/",
"feed_url": "https://example.com/feed",
"items": []
}

View file

@ -0,0 +1,15 @@
{
"version": "https://jsonfeed.org/version/1",
"title": "Sample feed with minimum data",
"home_page_url": "https://github.com/RSS-Bridge/rss-bridge/",
"feed_url": "https://example.com/feed",
"items": [
{
"id": "29f59918d266c56a935da13e4122b524298e5a39",
"title": "Sample Item #1"
},{
"id": "edf358cad1a7ae255d6bc97640dd9d27738f1b7b",
"title": "Sample Item #2"
}
]
}

View file

@ -0,0 +1,19 @@
{
"version": "https://jsonfeed.org/version/1",
"title": "Sample microblog feed",
"home_page_url": "https://example.com/blog/",
"feed_url": "https://example.com/feed",
"icon": "https://example.com/logo.png",
"favicon": "https://example.com/logo.png",
"items": [
{
"id": "1918f084648b82057c1dd3faa3d091da82a6fac2",
"date_modified": "2018-10-07T16:53:03+00:00",
"content_text": "Oh 😲 I found three monkeys 🙈🙉🙊"
},{
"id": "e62189168a06dfa74f61c621c79c33c4c8517e1f",
"date_modified": "2018-10-07T16:38:17+00:00",
"content_text": "Something happened"
}
]
}

View file

@ -0,0 +1,64 @@
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Sample feed with common data</title>
<link>https://example.com/blog/</link>
<description>Sample feed with common data</description>
<image>
<url>https://example.com/logo.png</url>
<title>Sample feed with common data</title>
<link>https://example.com/blog/</link>
</image>
<atom:link href="https://example.com/blog/" rel="alternate" type="text/html"/>
<atom:link href="https://example.com/feed?type=common&amp;items=4" rel="self" type="application/atom+xml"/>
<item>
<title>Test Entry</title>
<link>http://example.com/blog/test-entry</link>
<guid isPermaLink="true">http://example.com/blog/test-entry</guid>
<pubDate>Sat, 01 Dec 2018 12:00:00 +0000</pubDate>
<description>Hello world, this is a test entry.</description>
<category>test</category>
<category>Hello World</category>
<category>example</category>
</item>
<item>
<title>Announcing JSON Feed</title>
<link>https://jsonfeed.org/2017/05/17/announcing_json_feed</link>
<guid isPermaLink="true">https://jsonfeed.org/2017/05/17/announcing_json_feed</guid>
<pubDate>Wed, 17 May 2017 13:02:12 +0000</pubDate>
<description>&lt;p&gt;We — Manton Reece and Brent Simmons — have noticed that JSON has become the developers choice for APIs, and that developers will often go out of their way to avoid XML. JSON is simpler to read and write, and its less prone to bugs.&lt;/p&gt;
&lt;p&gt;So we developed JSON Feed, a format similar to &lt;a href="http://cyber.harvard.edu/rss/rss.html"&gt;RSS&lt;/a&gt; and &lt;a href="https://tools.ietf.org/html/rfc4287"&gt;Atom&lt;/a&gt; but in JSON. It reflects the lessons learned from our years of work reading and publishing feeds.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://jsonfeed.org/version/1"&gt;See the spec&lt;/a&gt;. Its at version 1, which may be the only version ever needed. If future versions are needed, version 1 feeds will still be valid feeds.&lt;/p&gt;
&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;We have a &lt;a href="https://github.com/manton/jsonfeed-wp"&gt;WordPress plugin&lt;/a&gt; and, coming soon, a JSON Feed Parser for Swift. As more code is written, by us and others, well update the &lt;a href="https://jsonfeed.org/code"&gt;code&lt;/a&gt; page.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://jsonfeed.org/mappingrssandatom"&gt;Mapping RSS and Atom to JSON Feed&lt;/a&gt; for more on the similarities between the formats.&lt;/p&gt;
&lt;p&gt;This website — the Markdown files and supporting resources — &lt;a href="https://github.com/brentsimmons/JSONFeed"&gt;is up on GitHub&lt;/a&gt;, and youre welcome to comment there.&lt;/p&gt;
&lt;p&gt;This website is also a blog, and you can subscribe to the &lt;a href="https://jsonfeed.org/xml/rss.xml"&gt;RSS feed&lt;/a&gt; or the &lt;a href="https://jsonfeed.org/feed.json"&gt;JSON feed&lt;/a&gt; (if your reader supports it).&lt;/p&gt;
&lt;p&gt;We worked with a number of people on this over the course of several months. We list them, and thank them, at the bottom of the &lt;a href="https://jsonfeed.org/version/1"&gt;spec&lt;/a&gt;. But — most importantly — &lt;a href="http://furbo.org/"&gt;Craig Hockenberry&lt;/a&gt; spent a little time making it look pretty. :)&lt;/p&gt;</description>
</item>
<item>
<title>Atom draft-07 snapshot</title>
<link>http://example.org/2005/04/02/atom</link>
<guid isPermaLink="false">dd6b6c920d3b340ab9e07faf6682f2a7c4f70134</guid>
<pubDate>Sun, 31 Jul 2005 12:29:29 +0000</pubDate>
<description>&lt;p&gt;&lt;i&gt;[Update: The Atom draft is finished.]&lt;/i&gt;&lt;/p&gt;</description>
<media:content url="http://example.org/audio/ph34r_my_podcast.mp3" type="audio/mpeg"/>
</item>
<item>
<title>Star City</title>
<link>http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</link>
<guid isPermaLink="true">http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp</guid>
<pubDate>Tue, 03 Jun 2003 09:39:21 +0000</pubDate>
<description>How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's &lt;a href="http://howe.iki.rssi.ru/GCTC/gctc_e.htm"&gt;Star City&lt;/a&gt;.</description>
</item>
</channel>
</rss>

View file

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Sample feed with minimum data</title>
<link>https://github.com/RSS-Bridge/rss-bridge/</link>
<description>Sample feed with minimum data</description>
<atom:link href="https://github.com/RSS-Bridge/rss-bridge/" rel="alternate" type="text/html"/>
<atom:link href="https://example.com/feed" rel="self" type="application/atom+xml"/>
</channel>
</rss>

View file

@ -0,0 +1,19 @@
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Sample feed with minimum data</title>
<link>https://github.com/RSS-Bridge/rss-bridge/</link>
<description>Sample feed with minimum data</description>
<atom:link href="https://github.com/RSS-Bridge/rss-bridge/" rel="alternate" type="text/html"/>
<atom:link href="https://example.com/feed" rel="self" type="application/atom+xml"/>
<item>
<title>Sample Item #1</title>
<guid isPermaLink="false">29f59918d266c56a935da13e4122b524298e5a39</guid>
</item>
<item>
<title>Sample Item #2</title>
<guid isPermaLink="false">edf358cad1a7ae255d6bc97640dd9d27738f1b7b</guid>
</item>
</channel>
</rss>

View file

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>Sample microblog feed</title>
<link>https://example.com/blog/</link>
<description>Sample microblog feed</description>
<image>
<url>https://example.com/logo.png</url>
<title>Sample microblog feed</title>
<link>https://example.com/blog/</link>
</image>
<atom:link href="https://example.com/blog/" rel="alternate" type="text/html"/>
<atom:link href="https://example.com/feed" rel="self" type="application/atom+xml"/>
<item>
<guid isPermaLink="false">1918f084648b82057c1dd3faa3d091da82a6fac2</guid>
<pubDate>Sun, 07 Oct 2018 16:53:03 +0000</pubDate>
<description>Oh 😲 I found three monkeys 🙈🙉🙊</description>
</item>
<item>
<guid isPermaLink="false">e62189168a06dfa74f61c621c79c33c4c8517e1f</guid>
<pubDate>Sun, 07 Oct 2018 16:38:17 +0000</pubDate>
<description>Something happened</description>
</item>
</channel>
</rss>

View file

@ -0,0 +1,43 @@
{
"server": {
"HTTPS": "on",
"HTTP_HOST": "example.com",
"REQUEST_URI": "/feed?type=common&items=4"
},
"meta": {
"name": "Sample feed with common data",
"uri": "https://example.com/blog/",
"icon": "https://example.com/logo.png"
},
"items": [
{
"uri": "http://example.com/blog/test-entry",
"title": "Test Entry",
"timestamp": 1543665600,
"author": "fulmeek",
"content": "Hello world, this is a test entry.",
"categories": ["test", "Hello World", "example"]
},{
"uri": "https://jsonfeed.org/2017/05/17/announcing_json_feed",
"title": "Announcing JSON Feed",
"timestamp": 1495026132,
"author": "Brent Simmons and Manton Reece",
"content": "<p>We — Manton Reece and Brent Simmons — have noticed that JSON has become the developers choice for APIs, and that developers will often go out of their way to avoid XML. JSON is simpler to read and write, and its less prone to bugs.</p>\n\n<p>So we developed JSON Feed, a format similar to <a href=\"http://cyber.harvard.edu/rss/rss.html\">RSS</a> and <a href=\"https://tools.ietf.org/html/rfc4287\">Atom</a> but in JSON. It reflects the lessons learned from our years of work reading and publishing feeds.</p>\n\n<p><a href=\"https://jsonfeed.org/version/1\">See the spec</a>. Its at version 1, which may be the only version ever needed. If future versions are needed, version 1 feeds will still be valid feeds.</p>\n\n<h4>Notes</h4>\n\n<p>We have a <a href=\"https://github.com/manton/jsonfeed-wp\">WordPress plugin</a> and, coming soon, a JSON Feed Parser for Swift. As more code is written, by us and others, well update the <a href=\"https://jsonfeed.org/code\">code</a> page.</p>\n\n<p>See <a href=\"https://jsonfeed.org/mappingrssandatom\">Mapping RSS and Atom to JSON Feed</a> for more on the similarities between the formats.</p>\n\n<p>This website — the Markdown files and supporting resources — <a href=\"https://github.com/brentsimmons/JSONFeed\">is up on GitHub</a>, and youre welcome to comment there.</p>\n\n<p>This website is also a blog, and you can subscribe to the <a href=\"https://jsonfeed.org/xml/rss.xml\">RSS feed</a> or the <a href=\"https://jsonfeed.org/feed.json\">JSON feed</a> (if your reader supports it).</p>\n\n<p>We worked with a number of people on this over the course of several months. We list them, and thank them, at the bottom of the <a href=\"https://jsonfeed.org/version/1\">spec</a>. But — most importantly — <a href=\"http://furbo.org/\">Craig Hockenberry</a> spent a little time making it look pretty. :)</p>"
},{
"uri": "http://example.org/2005/04/02/atom",
"uid": "tag:example.org,2003:3.2397",
"title": "Atom draft-07 snapshot",
"timestamp": 1122812969,
"author": "Mark Pilgrim",
"content": "<p><i>[Update: The Atom draft is finished.]</i></p>",
"enclosures": [
"http://example.org/audio/ph34r_my_podcast.mp3"
]
},{
"uri": "http://liftoff.msfc.nasa.gov/news/2003/news-starcity.asp",
"title": "Star City",
"timestamp": 1054633161,
"content": "How do Americans get ready to work with Russians aboard the International Space Station? They take a crash course in culture, language and protocol at Russia's <a href=\"http://howe.iki.rssi.ru/GCTC/gctc_e.htm\">Star City</a>."
}
]
}

View file

@ -0,0 +1,13 @@
{
"server": {
"HTTPS": "on",
"HTTP_HOST": "example.com",
"REQUEST_URI": "/feed"
},
"meta": {
"name": "Sample feed with minimum data",
"uri": "",
"icon": ""
},
"items": []
}

View file

@ -0,0 +1,19 @@
{
"server": {
"HTTPS": "on",
"HTTP_HOST": "example.com",
"REQUEST_URI": "/feed"
},
"meta": {
"name": "Sample feed with minimum data",
"uri": "",
"icon": ""
},
"items": [
{
"title": "Sample Item #1"
},{
"title": "Sample Item #2"
}
]
}

View file

@ -0,0 +1,21 @@
{
"server": {
"HTTPS": "on",
"HTTP_HOST": "example.com",
"REQUEST_URI": "/feed"
},
"meta": {
"name": "Sample microblog feed",
"uri": "https://example.com/blog/",
"icon": "https://example.com/logo.png"
},
"items": [
{
"timestamp": 1538931183,
"content": "Oh 😲 I found three monkeys 🙈🙉🙊"
},{
"timestamp": 1538930297,
"content": "Something happened"
}
]
}