Skip to content

Commit

Permalink
fix: actually remove v1 from stationTag (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
marudor authored Dec 7, 2020
1 parent 8dd919f commit 653fa8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/server/API/controller/Station/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const validationOverwrite = [
@Route('/station/v1')
export class StationController extends Controller {
@Get('/search/{searchTerm}')
@Tags('Station V1')
@Tags('Station')
async searchStation(
@Request() ctx: Context,
searchTerm: string,
Expand All @@ -45,7 +45,7 @@ export class StationController extends Controller {
}

@Get('/geoSearch')
@Tags('Station V1')
@Tags('Station')
geoSearch(
@Query() lat: number,
@Query() lng: number,
Expand All @@ -66,20 +66,20 @@ export class StationController extends Controller {
}

@Get('/iris/{evaId}')
@Tags('Station V1')
@Tags('Station')
irisSearch(evaId: string): Promise<IrisStationWithRelated> {
return getStation(evaId, 1);
}

@Get('/station/{evaId}')
@Tags('Station V1')
@Tags('Station')
stationDetails(evaId: string): Promise<DetailBusinessHubStation> {
return stationDetails(evaId);
}

@Response(400, 'No station found')
@Get('/ds100/{ds100}')
@Tags('Station V1')
@Tags('Station')
async ds100(ds100: string): Promise<Station> {
const station = await DS100(ds100);

Expand Down
10 changes: 5 additions & 5 deletions public/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6365,7 +6365,7 @@
"description": "No station found"
}
},
"tags": ["Station V1"],
"tags": ["Station"],
"security": [],
"parameters": [
{
Expand Down Expand Up @@ -6486,7 +6486,7 @@
}
}
},
"tags": ["Station V1"],
"tags": ["Station"],
"security": [],
"parameters": [
{
Expand Down Expand Up @@ -6645,7 +6645,7 @@
}
}
},
"tags": ["Station V1"],
"tags": ["Station"],
"security": [],
"parameters": [
{
Expand Down Expand Up @@ -7168,7 +7168,7 @@
}
}
},
"tags": ["Station V1"],
"tags": ["Station"],
"security": [],
"parameters": [
{
Expand Down Expand Up @@ -7246,7 +7246,7 @@
}
}
},
"tags": ["Station V1"],
"tags": ["Station"],
"security": [],
"parameters": [
{
Expand Down

0 comments on commit 653fa8a

Please sign in to comment.