Resources web API¶
The following operations require an authenticated user and are relative to the Resources service root. Use the uppercase knowledge-class name, and percent-encode an asset's URN as a single path value.
| Method and route | Request and response |
|---|---|
GET /api/v1/list/{knowledgeClass} |
Returns the visible assets of that class. For WORLDVIEW, worldviewHeaders=true requests lightweight headers. |
GET /api/v1/resolve/{knowledgeClass}/{urn} |
Returns a ResourceSet with locations, dependencies and notifications. |
GET /api/v1/retrieve/{knowledgeClass}/{urn} |
Returns the requested concrete asset. For a project, manifestOnly=true selects its manifest. |
PUT /api/v1/submit/{knowledgeClass}/{submissionMode}/{urn} |
Accepts a serialized asset and returns workspace change sets. The path, mode and payload must agree and the caller needs mutation rights. |
For a read-only check, set RESOURCES_ROOT to the advertised service root and supply a user token. Compare the returned projects with the workspaces visible to that same user in Modeler.
curl --fail --header "Authorization: Bearer $KLAB_TOKEN" "$RESOURCES_ROOT/api/v1/list/PROJECT"
Resolve an asset when you need its dependency closure. Retrieve it when you need the full definition. An empty result with diagnostics deserves inspection before a client tries an alternative source. Common service contracts ยท Resources public API