Skip to content

Commit 440a774

Browse files
author
Grahame Grieve
committed
Add support for updated NPM search
1 parent 56a88c3 commit 440a774

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

release-notes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Change Notes for {ver}:
22

3-
*
3+
* Add support for updated NPM search
44

55
## Conformance Notes:
66

7-
*
7+
* tx.fhir.org passed 305 HL7 terminology service tests (mode 'tx.fhir.org', tests v1.7.7-SNAPSHOT, runner v6.5.14)

server/endpoint_packages.pas

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1680,6 +1680,11 @@ function TFHIRPackageWebServer.doRequest(AContext: TIdContext; request: TIdHTTPR
16801680
result := 'Packages updates since '+pm['lastUpdated'];
16811681
end;
16821682
end
1683+
else if (request.CommandType = hcGET) and (request.Document = '/packages/-/v1/search') then
1684+
begin
1685+
serveSearch(pm['text'], pm['dependson'], pm['pkgcanonical'], pm['canonical'], pm['fhirversion'], pm['dependency'], pm['sort'], secure, request, response);
1686+
result := 'Search Packages (v1)';
1687+
end
16831688
else if (request.CommandType = hcGET) and (request.Document = '/packages/log') then
16841689
begin
16851690
serveLog(request, response);

0 commit comments

Comments
 (0)