Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
{{#useHttpClient}}
import { HttpClientModule } from '@angular/common/http';
{{/useHttpClient}}
{{^useHttpClient}}
import { HttpModule } from '@angular/http';
{{/useHttpClient}}
import { Configuration } from './configuration';

{{#apiInfo}}
Expand All @@ -10,7 +15,7 @@ import { {{classname}} } from './{{importPath}}';
{{/apiInfo}}

@NgModule({
imports: [ CommonModule, HttpModule ],
imports: [ CommonModule, {{#useHttpClient}}HttpClientModule{{/useHttpClient}}{{^useHttpClient}}HttpModule{{/useHttpClient}} ],
declarations: [],
exports: [],
providers: [ {{#apiInfo}}{{#apis}}{{classname}}{{#hasMore}}, {{/hasMore}}{{/apis}}{{/apiInfo}} ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ export interface ApiResponse {
type?: string;
message?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Category {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export namespace Order {
Delivered: 'delivered' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export namespace Pet {
Sold: 'sold' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Tag {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ export interface User {
*/
userStatus?: number;
}


Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ export interface ApiResponse {
type?: string;
message?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Category {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export namespace Order {
Delivered: 'delivered' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export namespace Pet {
Sold: 'sold' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Tag {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ export interface User {
*/
userStatus?: number;
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Category {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export namespace Order {
Delivered: 'delivered' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export namespace Pet {
Sold: 'sold' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Tag {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ export interface User {
*/
userStatus?: number;
}


Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ export interface ApiResponse {
type?: string;
message?: string;
}


Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpModule } from '@angular/http';
import { HttpClientModule } from '@angular/common/http';
import { Configuration } from './configuration';

import { PetService } from './api/pet.service';
import { StoreService } from './api/store.service';
import { UserService } from './api/user.service';

@NgModule({
imports: [ CommonModule, HttpModule ],
imports: [ CommonModule, HttpClientModule ],
declarations: [],
exports: [],
providers: [ PetService, StoreService, UserService ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ export interface Order {
}
export namespace Order {
export type StatusEnum = 'placed' | 'approved' | 'delivered';
export const StatusEnum = {
Placed: 'placed' as StatusEnum,
Approved: 'approved' as StatusEnum,
Delivered: 'delivered' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ export interface Pet {
}
export namespace Pet {
export type StatusEnum = 'available' | 'pending' | 'sold';
export const StatusEnum = {
Available: 'available' as StatusEnum,
Pending: 'pending' as StatusEnum,
Sold: 'sold' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ export interface ApiResponse {
type?: string;
message?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Category {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ export namespace Order {
Delivered: 'delivered' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export namespace Pet {
Sold: 'sold' as StatusEnum
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ export interface Tag {
id?: number;
name?: string;
}


Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ export interface User {
*/
userStatus?: number;
}