Skip to content

Commit 1933f48

Browse files
Standardize naming
1 parent fd1e2fe commit 1933f48

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

packages/apollo-cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ npm install -g @apollo-annotation/cli
1616
$ apollo COMMAND
1717
running command...
1818
$ apollo (--version)
19-
@apollo-annotation/cli/0.3.9 darwin-x64 node-v20.19.0
19+
@apollo-annotation/cli/0.3.9 linux-x64 node-v24.6.0
2020
$ apollo --help [COMMAND]
2121
USAGE
2222
$ apollo COMMAND

packages/apollo-cli/src/commands/feature/get.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ export default class Get extends BaseCommand<typeof Get> {
8686
start: number,
8787
end: number,
8888
): Promise<Response> {
89-
const url = new URL(
90-
localhostToAddress(`${address}/features/getFeaturesByRange`),
91-
)
89+
const url = new URL(localhostToAddress(`${address}/features/getFeatures`))
9290
const searchParams = new URLSearchParams({
9391
refSeq,
9492
start: start.toString(),

packages/apollo-collaboration-server/src/features/features.controller.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,18 @@ export class FeaturesController {
4141
* @returns Return 'HttpStatus.OK' and array of features if search was successful
4242
* or if search data was not found or in case of error throw exception
4343
*/
44-
@Get('getFeaturesByRange')
44+
@Get('getFeatures')
4545
getFeaturesByRange(@Query() request: FeatureRangeSearchDto) {
4646
this.logger.debug(
47-
`getFeaturesByRange -method: refSeq: ${request.refSeq}, start: ${request.start}, end: ${request.end}`,
47+
`getFeatures endpoint: refSeq: ${request.refSeq}, start: ${request.start}, end: ${request.end}`,
4848
)
4949

5050
return this.featuresService.findByRange(request)
5151
}
5252

53-
@Post('getFeatures')
54-
getFeatures(@Body() request: FeatureIdsSearchDto) {
55-
this.logger.debug(
56-
`getFeatures -method: featureIds: ${JSON.stringify(request.featureIds)}`,
57-
)
53+
@Post('getByIds')
54+
findByFeatureIds(@Body() request: FeatureIdsSearchDto) {
55+
this.logger.debug(`: featureIds: ${JSON.stringify(request.featureIds)}`)
5856
return this.featuresService.findByFeatureIds(
5957
request.featureIds,
6058
request.topLevel,

packages/jbrowse-plugin-apollo/src/BackendDrivers/CollaborationServerDriver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class CollaborationServerDriver extends BackendDriver {
119119
) as ApolloInternetAccount
120120
const { baseURL } = internetAccount
121121

122-
const url = new URL('features/getFeaturesByRange', baseURL)
122+
const url = new URL('features/getFeatures', baseURL)
123123
const searchParams = new URLSearchParams({
124124
refSeq,
125125
start: String(start),

0 commit comments

Comments
 (0)