Skip to content

Commit

Permalink
Fixing swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagobustamante committed May 11, 2017
1 parent dfadd64 commit 10329a4
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 3,032 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"serve-favicon": "~2.3.0",
"typescript-ioc": "^0.4.0",
"typescript-rest": "^1.0.1",
"typescript-rest-swagger": "^0.0.3",
"typescript-rest-swagger": "^0.0.4",
"uuid": "^3.0.1",
"winston": "^2.3.1"
},
Expand Down
5 changes: 3 additions & 2 deletions src/admin/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { Path, GET, POST, DELETE, PUT, PathParam, Errors, Return } from 'typescr
import { ApiConfig, validateApiConfig } from '../../config/api';
import { ApiService } from '../../service/api';
import { Inject } from 'typescript-ioc';
import { Tags } from 'typescript-rest-swagger';
import * as swagger from 'typescript-rest-swagger';

@Path('apis')
@Tags('APIs administration')
@swagger.Tags('APIs administration')
@swagger.Security('Bearer')
export class APIRest {
@Inject private service: ApiService;

Expand Down
5 changes: 3 additions & 2 deletions src/admin/api/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { Path, GET, DELETE, PUT } from 'typescript-rest';
import { GatewayConfig, validateGatewayConfig } from '../../config/gateway';
import { GatewayService } from '../../service/gateway';
import { Inject } from 'typescript-ioc';
import { Tags } from 'typescript-rest-swagger';
import * as swagger from 'typescript-rest-swagger';

@Path('gateway')
@Tags('Gateway Configuration')
@swagger.Tags('Gateway Configuration')
@swagger.Security('Bearer')
export class GatewayRest {
@Inject private service: GatewayService;

Expand Down
4 changes: 2 additions & 2 deletions src/admin/api/health-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import { Path, GET, Errors } from 'typescript-rest';
import { Inject } from 'typescript-ioc';
import { Database } from '../../database';
import { Tags } from 'typescript-rest-swagger';
import * as swagger from 'typescript-rest-swagger';

@Path('healthcheck')
@Tags('Miscellaneous')
@swagger.Tags('Miscellaneous')
export class HealthCheck {
@Inject private database: Database;

Expand Down
5 changes: 3 additions & 2 deletions src/admin/api/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { Path, GET, POST, DELETE, PUT, PathParam, FileParam, FormParam, Errors,
import * as path from 'path';
import { MiddlewareService } from '../../service/middleware';
import { Inject } from 'typescript-ioc';
import { Tags } from 'typescript-rest-swagger';
import * as swagger from 'typescript-rest-swagger';

@Path('middleware')
@Tags('Middleware Configurations')
@swagger.Tags('Middleware Configurations')
@swagger.Security('Bearer')
export class MiddlewareRest {
@Inject private service: MiddlewareService;

Expand Down
5 changes: 3 additions & 2 deletions src/admin/api/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import { Monitors } from '../../monitor/monitors';
import { Inject } from 'typescript-ioc';
import { Gateway } from '../../gateway';
import { StatsRecorder } from '../../stats/stats-recorder';
import { Tags } from 'typescript-rest-swagger';
import * as swagger from 'typescript-rest-swagger';

@Path('stats')
@Tags('Stats Monitoring')
@swagger.Tags('Stats Monitoring')
@swagger.Security('Bearer')
export class StatsRest {
@Inject private monitors: Monitors;
@Inject private gateway: Gateway;
Expand Down

0 comments on commit 10329a4

Please sign in to comment.