How is the atom-feed being used?

Hi,

I noticed the atom feed in the codebase, but can’t find how it’s used in implementations.

  • How is this atom-feed being used?

  • Does it hook into requisitions or proof of delivery?

  • Do you have any sample “categories” ?

The feed seems to be working when you type anything in the “category1” field

URL: http://demo.openlmis.org/feeds/category1/recent

Response:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Event feed</title>
  <link rel="self" type="application/atom+xml" href="http://localhost:9091/feeds/category1/recent" />
  <link rel="via" type="application/atom+xml" href="http://localhost:9091/feeds/category1/0" />
  <author>
    <name>Atomfeed</name>
  </author>
  <id>+0</id>
  <generator uri="https://github.com/ICT4H/atomfeed">Atomfeed</generator>
  <updated>2016-04-26T23:00:00Z</updated>
</feed>

``

Thank you,

Craig

Does anybody have any info for Craig on atom feeds in OpenLMIS?

···

On Wednesday, April 27, 2016 at 3:39:32 PM UTC-7, Craig A wrote:

Hi,

I noticed the atom feed in the codebase, but can’t find how it’s used in implementations.

  • How is this atom-feed being used?
  • Does it hook into requisitions or proof of delivery?
  • Do you have any sample “categories” ?

The feed seems to be working when you type anything in the “category1” field

URL: http://demo.openlmis.org/feeds/category1/recent

Response:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="[http://www.w3.org/2005/Atom](http://www.w3.org/2005/Atom)">
  <title>Event feed</title>
  <link rel="self" type="application/atom+xml" href="[http://localhost:9091/feeds/category1/recent](http://localhost:9091/feeds/category1/recent)" />
  <link rel="via" type="application/atom+xml" href="[http://localhost:9091/feeds/category1/0](http://localhost:9091/feeds/category1/0)" />
  <author>
    <name>Atomfeed</name>
  </author>
  <id>+0</id>
  <generator uri="[https://github.com/ICT4H/atomfeed](https://github.com/ICT4H/atomfeed)">Atomfeed</generator>
  <updated>2016-04-26T23:00:00Z</updated>
</feed>

``

Thank you,

Craig

I do not have a lot of familiarity with this feature as I am not actively using it. If it is helpful, please see my response to the questions inline.

···

On Mon, May 9, 2016 at 11:39 AM, Rich Magnuson rich.magnuson@villagereach.org wrote:

Does anybody have any info for Craig on atom feeds in OpenLMIS?

On Wednesday, April 27, 2016 at 3:39:32 PM UTC-7, Craig A wrote:

Hi,

I noticed the atom feed in the codebase, but can’t find how it’s used in implementations.

  • How is this atom-feed being used?
  • Does it hook into requisitions or proof of delivery?

It hooks into requisition status change event. Not sure about POD.

  • Do you have any sample “categories” ?

Taking from the atomfeed.event_records table, these are valid categories: facilities, programs-supported, requisition-status, program-catalog-changes

The feed seems to be working when you type anything in the “category1” field

URL: http://demo.openlmis.org/feeds/category1/recent

Response:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="[http://www.w3.org/2005/Atom](http://www.w3.org/2005/Atom)">
  <title>Event feed</title>
  <link rel="self" type="application/atom+xml" href="[http://localhost:9091/feeds/category1/recent](http://localhost:9091/feeds/category1/recent)" />
  <link rel="via" type="application/atom+xml" href="[http://localhost:9091/feeds/category1/0](http://localhost:9091/feeds/category1/0)" />
  <author>
    <name>Atomfeed</name>
  </author>
  <id>+0</id>
  <generator uri="[https://github.com/ICT4H/atomfeed](https://github.com/ICT4H/atomfeed)">Atomfeed</generator>
  <updated>2016-04-26T23:00:00Z</updated>
</feed>

``

Thank you,

Craig