]);
}
+ /**
+ * @NoAdminRequired
+ */
+ public function resolveOne(string $reference): DataResponse {
+ $resolvedReference = $this->referenceManager->resolveReference($reference);
+
+ $response = new DataResponse(['references' => [ $reference => $resolvedReference ]]);
+ $response->cacheFor(3600, false, true);
+ return $response;
+ }
/**
* @NoAdminRequired
['root' => '/collaboration', 'name' => 'CollaborationResources#getCollectionsByResource', 'url' => '/resources/{resourceType}/{resourceId}', 'verb' => 'GET'],
['root' => '/collaboration', 'name' => 'CollaborationResources#createCollectionOnResource', 'url' => '/resources/{baseResourceType}/{baseResourceId}', 'verb' => 'POST'],
+ ['root' => '/references', 'name' => 'ReferenceApi#resolveOne', 'url' => '/resolve', 'verb' => 'GET'],
['root' => '/references', 'name' => 'ReferenceApi#extract', 'url' => '/extract', 'verb' => 'POST'],
['root' => '/references', 'name' => 'ReferenceApi#resolve', 'url' => '/resolve', 'verb' => 'POST'],