getPosts

get

/ccadmin/v1/posts

Get Posts. Fetches Announcements based on the passed filters

Request

Supported Media Types
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getPosts_response
Type: object
Show Source
Nested Schema : posts
Type: array
The array of the Announcements.
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccadminui/v1/posts?q=type%20%3D%20%22announcementPost%22&offset=0&limit=250&sort=creationDate%3Adesc"
        }
    ],
    "totalPostsCount":2,
    "posts":[
        {
            "lastModifiedDate":"2015-05-09T14:32:10.056Z",
            "repositoryId":"200001",
            "active":true,
            "id":"200001",
            "message":"Test Announcement message1.",
            "creationDate":"2015-05-09T14:32:10.056Z",
            "type":"announcementPost"
        },
        {
            "lastModifiedDate":"2015-05-10T06:33:31.242Z",
            "repositoryId":"100002",
            "active":true,
            "id":"100002",
            "message":"Test Announcement message2.",
            "creationDate":"2015-05-06T10:23:43.000Z",
            "type":"announcementPost"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |200201|Internal error occurred.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top