Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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 @@ -23,3 +23,5 @@ export interface ApiResponse {
message?: string;

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still wondering about those newlines

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try to clean it up later with a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened #6788 to address this :)



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

}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export interface Order {
export namespace Order {
export type StatusEnum = 'placed' | 'approved' | 'delivered';
}


Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ export interface Pet {
export namespace Pet {
export type StatusEnum = 'available' | 'pending' | 'sold';
}


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

}


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

}


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

}


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

}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export interface Order {
export namespace Order {
export type StatusEnum = 'placed' | 'approved' | 'delivered';
}


Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ export interface Pet {
export namespace Pet {
export type StatusEnum = 'available' | 'pending' | 'sold';
}


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

}


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

}


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

}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export interface Order {
export namespace Order {
export type StatusEnum = 'placed' | 'approved' | 'delivered';
}


Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ export interface Pet {
export namespace Pet {
export type StatusEnum = 'available' | 'pending' | 'sold';
}


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

}


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

}


Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ export interface ApiResponse {
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 @@ -23,3 +23,5 @@ export interface ApiResponse {
message?: string;

}


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

}


Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export interface Order {

}
export namespace Order {
export enum StatusEnum {
Placed = <any> 'placed',
Approved = <any> 'approved',
Delivered = <any> 'delivered'
}
export type StatusEnum = 'placed' | 'approved' | 'delivered';
}


Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export interface Pet {

}
export namespace Pet {
export enum StatusEnum {
Available = <any> 'available',
Pending = <any> 'pending',
Sold = <any> 'sold'
}
export type StatusEnum = 'available' | 'pending' | 'sold';
}


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

}


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

}


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

}


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

}


Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export interface Order {
export namespace Order {
export type StatusEnum = 'placed' | 'approved' | 'delivered';
}


Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ export interface Pet {
export namespace Pet {
export type StatusEnum = 'available' | 'pending' | 'sold';
}


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

}


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

}