Reading Knowledge Base Details
-
products
-
classification tree
-
characteristic groups
-
characteristics
-
characteristic values
-
dependencies
-
bill of materials
Nearly all the above entities can be identified by an ID, and carry additional language-specific information.
The knowledge base ID is provided in the URL. The knowledge base is treated as a REST resource although only read access is granted
GET /api/v1/knowledgeBases/5973
In the response, the knowledge base details are provided in the body as follows:
HTTP/1.1 200 OK
cache-control: no-cache, no-store, max-age=0, must-revalidate
content-encoding: gzip
content-type: application/json
correlation_id: bab4168d-fe9c-40a1-a499-333e4aa0b1e2
date: Fri, 28 Apr 2023 12:20:36 GMT
expires: 0
pragma: no-cache
sap-server: true
server: istio-envoy
strict-transport-security: max-age=31536000 ; includeSubDomains
x-ssc-pod: ssc-engine-5488744d55-llljc
x-xss-protection: 1; mode=block
{"headerInfo":{"id":5973,"key":{"logsys":"XO0CLNT700","name":"SME_OFFICE","version":"0.0.1.0"},"validFromDate":"2021-02-01","changeDate":"2022-03-16","build":4,"structureHash":null,"profiles":null},"language":"EN","products": [...],"classes": [...],"characteristics": [...],"id":null}
Neither knowledge base determination, nor reading knowledge base details requires the session context. Knowledge base details can become quite large, therefore, the requests must not be triggered for each configuration request but must be buffered on the caller side. The knowledgebase key (logical system, name, version) plus the kbBuild are the ideal keys for the buffered entity.
To limit the size of the knowledge base response, it is possible to pass a projection. The respective entities specified in the parameter $select are included in the response. The maximal projection is:
$select=products, classes,characteristics,characteristicSpecifics,bomItems,description.
If no projection is passed, the default
$select=products,characteristics,characteristicSpecifics is applied, where the characteristicSpecifics contain only data for the symbolic characteristics.
By default, profiles are not included in the response. In order to include profiles in the response, query parameter includeProfiles needs to be added with the request.