Skip to content

Commit

Permalink
Merge pull request #2149 from siemens/feat/searchDocEndpoint
Browse files Browse the repository at this point in the history
feat(Rest): Modifying the document for search endpoint

Reviewed by: anupam.ghosh@siemens.com
  • Loading branch information
ag4ums authored Oct 18, 2023
2 parents d52da37 + b89bde7 commit 87295de
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ public void should_document_get_searchresult() throws Exception {
.andDo(this.documentationHandler.document(
requestParameters(
parameterWithName("searchText").description("The search text"),
parameterWithName("typeMasks").description("The type of resource. Possible values are " +List.of("project", "component", "license", "release", "obligation", "user", "vendor")),
parameterWithName("typeMasks").description("The type of resource. Possible values are " +List.of("project", "component", "license", "release", "obligation", "user", "vendor", "document")
+ "\nNote: If document is excluded in typeMasks, then search will be restricted to " + "Name for Project, Component and Release, "
+ "Fullname for License, User and Vendor, "
+ "Title for Obligation"),
parameterWithName("page").description("Page of search results"),
parameterWithName("page_entries").description("Amount of search results per page"),
parameterWithName("sort").description("Defines order of the search results")
Expand Down

0 comments on commit 87295de

Please sign in to comment.