Implementing OwnCloud API v1: Create a feed #9

Closed
opened 7 years ago by dustinwilson · 0 comments
Owner

Create a feed

Creates a new feed and returns the feed

  • Method: POST
  • Route: /feeds
  • Parameters:
{
  "url": "http:\/\/www.cyanogenmod.org\/wp-content\/themes\/cyanogenmod\/images\/favicon.ico",
  "folderId": 81 //  id of the parent folder, 0 for root
}
  • Return codes:
  • HTTP 409: If the feed exists already
  • HTTP 422: If the feed cant be read (most likely contains errors)
  • Returns:
{
  "feeds": [
    {
      "id": 39,
      "url": "http://feeds.feedburner.com/oatmealfeed",
      "title": "The Oatmeal - Comics, Quizzes, & Stories",
      "faviconLink": "http://theoatmeal.com/favicon.ico",
      "added": 1367063790,
      "folderId": 4,
      "unreadCount": 9,
      "ordering": 0, // 0 means no special ordering, 1 means oldest first, 2 newest first, new in 5.1.0
      "link": "http://theoatmeal.com/",
      "pinned": true // if a feed should be sorted before other feeds, added in 6.0.3
    }
  ],
  "newestItemId": 23 // only sent if there are items
}
## Create a feed Creates a new feed and returns the feed * **Method**: POST * **Route**: /feeds * **Parameters**: ```js { "url": "http:\/\/www.cyanogenmod.org\/wp-content\/themes\/cyanogenmod\/images\/favicon.ico", "folderId": 81 // id of the parent folder, 0 for root } ``` * **Return codes**: * **HTTP 409**: If the feed exists already * **HTTP 422**: If the feed cant be read (most likely contains errors) * **Returns**: ```js { "feeds": [ { "id": 39, "url": "http://feeds.feedburner.com/oatmealfeed", "title": "The Oatmeal - Comics, Quizzes, & Stories", "faviconLink": "http://theoatmeal.com/favicon.ico", "added": 1367063790, "folderId": 4, "unreadCount": 9, "ordering": 0, // 0 means no special ordering, 1 means oldest first, 2 newest first, new in 5.1.0 "link": "http://theoatmeal.com/", "pinned": true // if a feed should be sorted before other feeds, added in 6.0.3 } ], "newestItemId": 23 // only sent if there are items } ```
jking closed this issue 7 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

0000-12-31

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.