Get daily extract dates

get

/rest/ofscCore/v1/folders/dailyExtract/folders

This operation retrieves a list of dates where a daily extract file is available.

Note: The daily extract files are deleted after 90 days.

Request

There are no request parameters for this operation.

Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : Daily Extract Subfolders
Type: object
Title: Daily Extract Subfolders
The list of subfolders with daily extract files. Each subfolder is named in the 'YYYY-MM-DD' format.
Show Source
Nested Schema : Items
Type: array
Title: Items
The list of subfolders with daily extract files.
Show Source
Nested Schema : Folder
Type: object
Title: Folder
The folder that has the daily extract files.
Show Source

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to get daily extract dates by submitting a GET request on the REST resource using cURL.

curl -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' \
     -H 'Accept: application/json' \
     'https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders'

Example of Request Header

The following shows an example of the resquest header.

GET /rest/ofscCore/v1/folders/dailyExtract/folders HTTP/1.1
Accept-Encoding: gzip,deflate
Authorization: Basic c29hcEB0ZXN0YXBpY29yZS5pbjQwMDox
Host: <instance_name>.fs.ocs.oraclecloud.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Server: nginx/1.6.2
Date: Wed, 15 Jul 2015 12:30:56 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
   "name": "folders",
   "folders":
     {
      "items":
         [
           {
             "name": "2015-07-01",
             "links": [
                        {
                            "rel": "canonical",
                            "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-01"
                        }
                      ]
            },
                {
                   "name": "2015-07-02",
                   "links": [
                        {
                            "rel": "canonical",
                            "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02"
                        }
                            ]
                }
          ],
            "links": [
                {
                    "rel": "canonical",
                    "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders"
                }
                     ]
        },
        "links": [
            {
                "rel": "canonical",
                "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/folders/dailyExtract/folders"
            },
            {
                "rel": "describedby",
                "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/metadata-catalog/folders"
            }
                 ]
}
Back to Top