-
Notifications
You must be signed in to change notification settings - Fork 126
docs(arcgis-rest-portal): fix incorrect documentation for searchGroupContent #1208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
139a506
e80d5d6
ac67ef7
849c049
7e80015
18cd123
306eb99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# @esri/arcgis-rest-developer-credentials [2.1.0](https://github.com/Esri/arcgis-rest-js/compare/@esri/[email protected]...@esri/[email protected]) (2025-02-26) | ||
|
||
|
||
### Features | ||
|
||
* **arcgis-rest-developer-credentials:** add invalidateApiKey, fix generate API key bug ([b1458a2](https://github.com/Esri/arcgis-rest-js/commit/b1458a2b91c4c4b44254600e54d72a040b8bcf4e)) | ||
|
||
# @esri/arcgis-rest-developer-credentials [2.0.0](https://github.com/Esri/arcgis-rest-js/compare/@esri/[email protected]...@esri/[email protected]) (2025-02-20) | ||
|
||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,12 +36,20 @@ export function searchGroups( | |
* ```js | ||
* import { searchGroupContent } from "@esri/arcgis-rest-portal"; | ||
* | ||
* searchGroupContent('water') | ||
* .then(response) // response.total => 355 | ||
* searchGroupContent({ | ||
* q: 'water', | ||
* groupId: 'abc123' | ||
* }) | ||
* .then(response => { | ||
* console.log(response.total); // response.total => 355 | ||
* }); | ||
* ``` | ||
* | ||
* @param options - RequestOptions object amended with search parameters. | ||
* @returns A Promise that will resolve with the data from the response. | ||
* @param options - An object containing search parameters. | ||
* @param options.q - The search query (required). | ||
* @param options.groupId - The ID of the group to search within (required). | ||
* @param options.params - Additional search parameters (optional). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do not think you need to add these lines ... the automatic doc generator will link to |
||
* @returns A Promise that resolves to the search result containing items within the specified group. | ||
*/ | ||
export function searchGroupContent( | ||
options: ISearchGroupContentOptions | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This section looks good. I think you can remove the
// response.total => 355
line since this is just a fake example the number 355 does not really make sense.