Get all categories

get

https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category

Request

Query Parameters

There's no request body for this operation.

Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : schema
Type: array
Show Source
Nested Schema : CategoryOracle
Title: CategoryOracle
Match All
Show Source
Nested Schema : Category
Type: object
Title: Category
Discriminator: @type

Discriminator Values

Show Source
Nested Schema : CategoryOracle-allOf[1]
Type: object
Show Source
Nested Schema : ProjectRef
Type: object
Title: ProjectRef
Project Reference
Show Source

400 Response

Your request couldn't be processed because it contains missing or invalid information, such as a validation error on an input field, a missing required value, and so forth.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

401 Response

Your request isn't authorized. The authentication credentials included with this request are missing or invalid.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

404 Response

Your request includes a resource URI that doesn't exist.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

405 Response

HTTP action specified in the request (DELETE, GET, POST, PUT) isn't supported for this request URI.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source

500 Response

The server encountered something unexpected that prevented it from completing the request.
Body ()
Root Schema : Error
Type: object
Title: Error
Show Source
Back to Top

Examples

The following example shows how to get all categories by submitting a GET request on the REST resource using cURL.

cURL Command

curl -u username:password -X GET https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/productCatalogManagement/v4/category \ -H 'Content-Type: application/json'

Example of Response Body

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

[
    {
        "id": "Cat10Aug2_category7",
        "name": "Cat10Aug2_category7",
        "description": "Cat10Aug2_category7",
        "version": "Y",
        "lifecycleStatus": "In design",
        "created": "2020-08-10T15:34:09.000Z",
        "createdBy": "anonymous",
        "lastUpdate": "2020-08-10T15:34:09.000Z",
        "lastUpdatedBy": "anonymous",
        "@type": "CategoryOracle",
        "validFor": {
            "startDateTime": "2020-08-10T00:00:00.000Z"
        },
		 "project": {
        "id": "SpringProject",
        "name": "SpringProject"
		},
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/Cat10Aug2_category7"
    },
   {
        "id": "Cat10Aug_category11",
        "name": "Cat10Aug_category11",
        "description": "Cat10Aug_category11",
        "version": "Y",
        "lifecycleStatus": "In design",
        "created": "2020-08-10T14:06:52.000Z",
        "createdBy": "anonymous",
        "lastUpdate": "2020-08-10T14:06:52.000Z",
        "lastUpdatedBy": "anonymous",
        "@type": "CategoryOracle",
        "validFor": {
            "startDateTime": "2020-08-10T00:00:00.000Z"
        },
         "project": {
        "id": "SpringProject",
        "name": "SpringProject"
        },
        "href": "https://{FusionAppsHost}/crmRestApi/atcProductCatalog/11.13.18.05/tmf-api/productCatalogManagement/v4/category/Cat10Aug_category11"
    },
		....
]
Back to Top