Skip to content

Commit

Permalink
chore: refactor route var names to camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
NeuralFlux committed Oct 31, 2024
1 parent bac4cc2 commit eb61af1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ export const FILTER_FIELDS: FIELDS_FOR_FILTER[] = [
export const SMARTAPI_URL =
"https://smart-api.info/api/query?q=tags.name:translator&size=1000&fields=paths,servers,tags,components.x-bte*,info,_meta";

export const SINGLE_API_SMARTAPI_QUERY_TEMPLATE = "https://smart-api.info/api/metadata/{smartapi_id}";
export const SINGLE_API_SMARTAPI_QUERY_TEMPLATE = "https://smart-api.info/api/metadata/{smartAPIID}";

export const TEAM_SMARTAPI_QUERY_TEMPLATE =
'https://smart-api.info/api/query?q=info.x-translator.team:"{team_name}"&size=1000&fields=paths,servers,tags,components.x-bte*,info,_meta';
'https://smart-api.info/api/query?q=info.x-translator.team:"{teamName}"&size=1000&fields=paths,servers,tags,components.x-bte*,info,_meta';

export const COMPONENT_SMARTAPI_QUERY_TEMPLATE =
'https://smart-api.info/api/query?q=info.x-translator.component:"{component_name}"&size=1000&fields=paths,servers,tags,components.x-bte*,info,_meta';
Expand Down
6 changes: 3 additions & 3 deletions src/load/single_spec_async_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { SmartAPISpec } from "../parser/types";

export default class SingleSpecAsyncLoader extends BaseAsyncLoader {
private _smartapi_id: string;
constructor(smartapiID: string) {
super(SINGLE_API_SMARTAPI_QUERY_TEMPLATE.replace("{smartapi_id}", smartapiID));
this._smartapi_id = smartapiID;
constructor(smartAPIID: string) {
super(SINGLE_API_SMARTAPI_QUERY_TEMPLATE.replace("{smartAPIID}", smartAPIID));
this._smartapi_id = smartAPIID;
}

protected async fetch(): Promise<SmartAPISpec> {
Expand Down
2 changes: 1 addition & 1 deletion src/load/team_specs_async_loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { SmartAPISpec } from "../parser/types";

export default class TeamSpecsAsyncLoader extends BaseAsyncLoader {
constructor(teamName: string) {
super(TEAM_SMARTAPI_QUERY_TEMPLATE.replace("{team_name}", teamName));
super(TEAM_SMARTAPI_QUERY_TEMPLATE.replace("{teamName}", teamName));
}

protected async fetch(): Promise<SmartAPIQueryResult> {
Expand Down

0 comments on commit eb61af1

Please sign in to comment.