├── Angular5
├── .angular-cli.json
├── .editorconfig
├── .gitignore
├── README.md
├── e2e
│ ├── app.e2e-spec.ts
│ ├── app.po.ts
│ └── tsconfig.e2e.json
├── karma.conf.js
├── package-lock.json
├── package.json
├── protractor.conf.js
├── src
│ ├── app
│ │ ├── app.component.css
│ │ ├── app.component.html
│ │ ├── app.component.spec.ts
│ │ ├── app.component.ts
│ │ ├── app.module.ts
│ │ ├── shared
│ │ │ ├── upload-image.service.spec.ts
│ │ │ └── upload-image.service.ts
│ │ └── upload-image
│ │ │ ├── upload-image.component.css
│ │ │ ├── upload-image.component.html
│ │ │ ├── upload-image.component.spec.ts
│ │ │ └── upload-image.component.ts
│ ├── assets
│ │ ├── .gitkeep
│ │ └── img
│ │ │ └── default-image.png
│ ├── environments
│ │ ├── environment.prod.ts
│ │ └── environment.ts
│ ├── favicon.ico
│ ├── index.html
│ ├── main.ts
│ ├── polyfills.ts
│ ├── styles.css
│ ├── test.ts
│ ├── tsconfig.app.json
│ ├── tsconfig.spec.json
│ └── typings.d.ts
├── tsconfig.json
└── tslint.json
├── DBScript.sql
├── README.md
└── WebAPI
├── WebAPI.sln
├── WebAPI.v12.suo
├── WebAPI
├── App_Start
│ ├── BundleConfig.cs
│ ├── FilterConfig.cs
│ ├── RouteConfig.cs
│ └── WebApiConfig.cs
├── Areas
│ └── HelpPage
│ │ ├── ApiDescriptionExtensions.cs
│ │ ├── App_Start
│ │ └── HelpPageConfig.cs
│ │ ├── Controllers
│ │ └── HelpController.cs
│ │ ├── HelpPage.css
│ │ ├── HelpPageAreaRegistration.cs
│ │ ├── HelpPageConfigurationExtensions.cs
│ │ ├── Models
│ │ └── HelpPageApiModel.cs
│ │ ├── SampleGeneration
│ │ ├── HelpPageSampleGenerator.cs
│ │ ├── HelpPageSampleKey.cs
│ │ ├── ImageSample.cs
│ │ ├── InvalidSample.cs
│ │ ├── ObjectGenerator.cs
│ │ ├── SampleDirection.cs
│ │ └── TextSample.cs
│ │ ├── Views
│ │ ├── Help
│ │ │ ├── Api.cshtml
│ │ │ ├── DisplayTemplates
│ │ │ │ ├── ApiGroup.cshtml
│ │ │ │ ├── HelpPageApiModel.cshtml
│ │ │ │ ├── ImageSample.cshtml
│ │ │ │ ├── InvalidSample.cshtml
│ │ │ │ ├── Parameters.cshtml
│ │ │ │ ├── Samples.cshtml
│ │ │ │ └── TextSample.cshtml
│ │ │ └── Index.cshtml
│ │ ├── Shared
│ │ │ └── _Layout.cshtml
│ │ ├── Web.config
│ │ └── _ViewStart.cshtml
│ │ └── XmlDocumentationProvider.cs
├── Content
│ ├── Site.css
│ ├── bootstrap.css
│ └── bootstrap.min.css
├── Controllers
│ ├── HomeController.cs
│ ├── ImageController.cs
│ └── ValuesController.cs
├── Global.asax
├── Global.asax.cs
├── Models
│ ├── DBModels.Context.cs
│ ├── DBModels.Context.tt
│ ├── DBModels.Designer.cs
│ ├── DBModels.cs
│ ├── DBModels.edmx
│ ├── DBModels.edmx.diagram
│ ├── DBModels.tt
│ └── Image.cs
├── Project_Readme.html
├── Properties
│ └── AssemblyInfo.cs
├── Scripts
│ ├── _references.js
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ ├── jquery-1.10.2.intellisense.js
│ ├── jquery-1.10.2.js
│ ├── jquery-1.10.2.min.js
│ ├── jquery-1.10.2.min.map
│ ├── modernizr-2.6.2.js
│ ├── respond.js
│ └── respond.min.js
├── Views
│ ├── Home
│ │ └── Index.cshtml
│ ├── Shared
│ │ ├── Error.cshtml
│ │ └── _Layout.cshtml
│ ├── Web.config
│ └── _ViewStart.cshtml
├── Web.Debug.config
├── Web.Release.config
├── Web.config
├── WebAPI.csproj
├── WebAPI.csproj.user
├── bin
│ ├── Antlr3.Runtime.dll
│ ├── Antlr3.Runtime.pdb
│ ├── EntityFramework.dll
│ ├── EntityFramework.xml
│ ├── Microsoft.Web.Infrastructure.dll
│ ├── Newtonsoft.Json.dll
│ ├── Newtonsoft.Json.xml
│ ├── System.Net.Http.Formatting.dll
│ ├── System.Net.Http.Formatting.xml
│ ├── System.Web.Cors.dll
│ ├── System.Web.Helpers.dll
│ ├── System.Web.Helpers.xml
│ ├── System.Web.Http.Cors.dll
│ ├── System.Web.Http.Cors.xml
│ ├── System.Web.Http.WebHost.dll
│ ├── System.Web.Http.WebHost.xml
│ ├── System.Web.Http.dll
│ ├── System.Web.Http.xml
│ ├── System.Web.Mvc.dll
│ ├── System.Web.Mvc.xml
│ ├── System.Web.Optimization.dll
│ ├── System.Web.Optimization.xml
│ ├── System.Web.Razor.dll
│ ├── System.Web.Razor.xml
│ ├── System.Web.WebPages.Deployment.dll
│ ├── System.Web.WebPages.Deployment.xml
│ ├── System.Web.WebPages.Razor.dll
│ ├── System.Web.WebPages.Razor.xml
│ ├── System.Web.WebPages.dll
│ ├── System.Web.WebPages.xml
│ ├── WebAPI.dll
│ ├── WebAPI.dll.config
│ ├── WebAPI.pdb
│ └── WebGrease.dll
├── favicon.ico
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
├── obj
│ └── Debug
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── TempPE
│ │ ├── Models.DBModels.Designer.cs.dll
│ │ └── Models.DBModels.cs.dll
│ │ ├── TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
│ │ ├── TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
│ │ ├── TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
│ │ ├── WebAPI.csproj.FileListAbsolute.txt
│ │ ├── WebAPI.csprojResolveAssemblyReference.cache
│ │ ├── WebAPI.dll
│ │ ├── WebAPI.pdb
│ │ └── edmxResourcesToEmbed
│ │ └── Models
│ │ ├── DBModels.csdl
│ │ ├── DBModels.msl
│ │ └── DBModels.ssdl
└── packages.config
└── packages
├── Antlr.3.4.1.9004
├── Antlr.3.4.1.9004.nupkg
├── Antlr.3.4.1.9004.nuspec
└── lib
│ ├── Antlr3.Runtime.dll
│ └── Antlr3.Runtime.pdb
├── EntityFramework.5.0.0
├── Content
│ ├── App.config.transform
│ └── Web.config.transform
├── EntityFramework.5.0.0.nupkg
├── EntityFramework.5.0.0.nuspec
├── lib
│ ├── net40
│ │ ├── EntityFramework.dll
│ │ └── EntityFramework.xml
│ └── net45
│ │ ├── EntityFramework.dll
│ │ └── EntityFramework.xml
└── tools
│ ├── EntityFramework.PS3.psd1
│ ├── EntityFramework.PowerShell.Utility.dll
│ ├── EntityFramework.PowerShell.dll
│ ├── EntityFramework.psd1
│ ├── EntityFramework.psm1
│ ├── Redirect.VS11.config
│ ├── Redirect.config
│ ├── about_EntityFramework.help.txt
│ ├── init.ps1
│ ├── install.ps1
│ └── migrate.exe
├── Microsoft.AspNet.Cors.5.2.4
├── Microsoft.AspNet.Cors.5.2.4.nupkg
├── Microsoft.AspNet.Cors.5.2.4.nuspec
└── lib
│ └── net45
│ └── System.Web.Cors.dll
├── Microsoft.AspNet.Mvc.5.0.0
├── Microsoft.AspNet.Mvc.5.0.0.nupkg
├── Microsoft.AspNet.Mvc.5.0.0.nuspec
└── lib
│ └── net45
│ ├── System.Web.Mvc.dll
│ └── System.Web.Mvc.xml
├── Microsoft.AspNet.Razor.3.0.0
├── Microsoft.AspNet.Razor.3.0.0.nupkg
├── Microsoft.AspNet.Razor.3.0.0.nuspec
└── lib
│ └── net45
│ ├── System.Web.Razor.dll
│ └── System.Web.Razor.xml
├── Microsoft.AspNet.Web.Optimization.1.1.1
├── Microsoft.AspNet.Web.Optimization.1.1.1.nupkg
├── Microsoft.AspNet.Web.Optimization.1.1.1.nuspec
└── lib
│ └── net40
│ ├── System.Web.Optimization.dll
│ └── system.web.optimization.xml
├── Microsoft.AspNet.WebApi.5.0.0
├── Microsoft.AspNet.WebApi.5.0.0.nupkg
└── Microsoft.AspNet.WebApi.5.0.0.nuspec
├── Microsoft.AspNet.WebApi.Client.5.2.4
├── Microsoft.AspNet.WebApi.Client.5.2.4.nupkg
├── Microsoft.AspNet.WebApi.Client.5.2.4.nuspec
└── lib
│ ├── net45
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
│ ├── netstandard2.0
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
│ └── portable-wp8+netcore45+net45+wp81+wpa81
│ ├── System.Net.Http.Formatting.dll
│ └── System.Net.Http.Formatting.xml
├── Microsoft.AspNet.WebApi.Core.5.2.4
├── Content
│ └── web.config.transform
├── Microsoft.AspNet.WebApi.Core.5.2.4.nupkg
├── Microsoft.AspNet.WebApi.Core.5.2.4.nuspec
└── lib
│ └── net45
│ ├── System.Web.Http.dll
│ └── System.Web.Http.xml
├── Microsoft.AspNet.WebApi.Cors.5.2.4
├── Microsoft.AspNet.WebApi.Cors.5.2.4.nupkg
├── Microsoft.AspNet.WebApi.Cors.5.2.4.nuspec
└── lib
│ └── net45
│ ├── System.Web.Http.Cors.dll
│ └── System.Web.Http.Cors.xml
├── Microsoft.AspNet.WebApi.HelpPage.5.0.0
├── Microsoft.AspNet.WebApi.HelpPage.5.0.0.nupkg
├── Microsoft.AspNet.WebApi.HelpPage.5.0.0.nuspec
└── content
│ └── Areas
│ └── HelpPage
│ ├── ApiDescriptionExtensions.cs.pp
│ ├── App_Start
│ └── HelpPageConfig.cs.pp
│ ├── Controllers
│ └── HelpController.cs.pp
│ ├── HelpPage.css.pp
│ ├── HelpPageAreaRegistration.cs.pp
│ ├── HelpPageConfigurationExtensions.cs.pp
│ ├── Models
│ └── HelpPageApiModel.cs.pp
│ ├── SampleGeneration
│ ├── HelpPageSampleGenerator.cs.pp
│ ├── HelpPageSampleKey.cs.pp
│ ├── ImageSample.cs.pp
│ ├── InvalidSample.cs.pp
│ ├── ObjectGenerator.cs.pp
│ ├── SampleDirection.cs.pp
│ └── TextSample.cs.pp
│ ├── Views
│ ├── Help
│ │ ├── Api.cshtml.pp
│ │ ├── DisplayTemplates
│ │ │ ├── ApiGroup.cshtml.pp
│ │ │ ├── HelpPageApiModel.cshtml.pp
│ │ │ ├── ImageSample.cshtml.pp
│ │ │ ├── InvalidSample.cshtml.pp
│ │ │ ├── Parameters.cshtml.pp
│ │ │ ├── Samples.cshtml.pp
│ │ │ └── TextSample.cshtml.pp
│ │ └── Index.cshtml.pp
│ ├── Shared
│ │ └── _Layout.cshtml.pp
│ ├── Web.config
│ └── _ViewStart.cshtml.pp
│ └── XmlDocumentationProvider.cs.pp
├── Microsoft.AspNet.WebApi.WebHost.5.2.4
├── Microsoft.AspNet.WebApi.WebHost.5.2.4.nupkg
├── Microsoft.AspNet.WebApi.WebHost.5.2.4.nuspec
└── lib
│ └── net45
│ ├── System.Web.Http.WebHost.dll
│ └── System.Web.Http.WebHost.xml
├── Microsoft.AspNet.WebPages.3.0.0
├── Microsoft.AspNet.WebPages.3.0.0.nupkg
├── Microsoft.AspNet.WebPages.3.0.0.nuspec
└── lib
│ └── net45
│ ├── System.Web.Helpers.dll
│ ├── System.Web.Helpers.xml
│ ├── System.Web.WebPages.Deployment.dll
│ ├── System.Web.WebPages.Deployment.xml
│ ├── System.Web.WebPages.Razor.dll
│ ├── System.Web.WebPages.Razor.xml
│ ├── System.Web.WebPages.dll
│ └── System.Web.WebPages.xml
├── Microsoft.Web.Infrastructure.1.0.0.0
├── Microsoft.Web.Infrastructure.1.0.0.0.nupkg
├── Microsoft.Web.Infrastructure.1.0.0.0.nuspec
└── lib
│ └── net40
│ └── Microsoft.Web.Infrastructure.dll
├── Modernizr.2.6.2
├── Content
│ └── Scripts
│ │ └── modernizr-2.6.2.js
├── Modernizr.2.6.2.nupkg
├── Modernizr.2.6.2.nuspec
└── Tools
│ ├── common.ps1
│ ├── install.ps1
│ └── uninstall.ps1
├── Newtonsoft.Json.6.0.8
├── Newtonsoft.Json.6.0.8.nupkg
├── Newtonsoft.Json.6.0.8.nuspec
├── lib
│ ├── net20
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net35
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net40
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── net45
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── netcore45
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ ├── portable-net40+sl5+wp80+win8+wpa81
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
│ └── portable-net45+wp80+win8+wpa81+aspnetcore50
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
└── tools
│ └── install.ps1
├── Respond.1.2.0
├── Respond.1.2.0.nupkg
├── Respond.1.2.0.nuspec
└── content
│ └── Scripts
│ ├── respond.js
│ └── respond.min.js
├── WebGrease.1.5.2
├── WebGrease.1.5.2.nupkg
├── WebGrease.1.5.2.nuspec
├── lib
│ └── WebGrease.dll
└── tools
│ └── WG.exe
├── bootstrap.3.0.0
├── bootstrap.3.0.0.nupkg
├── bootstrap.3.0.0.nuspec
└── content
│ ├── Content
│ ├── bootstrap.css
│ └── bootstrap.min.css
│ ├── Scripts
│ ├── bootstrap.js
│ └── bootstrap.min.js
│ └── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ └── glyphicons-halflings-regular.woff
├── jQuery.1.10.2
├── Content
│ └── Scripts
│ │ ├── jquery-1.10.2-vsdoc.js
│ │ ├── jquery-1.10.2.js
│ │ ├── jquery-1.10.2.min.js
│ │ └── jquery-1.10.2.min.map
├── Tools
│ ├── common.ps1
│ ├── install.ps1
│ ├── jquery-1.10.2.intellisense.js
│ └── uninstall.ps1
├── jQuery.1.10.2.nupkg
└── jQuery.1.10.2.nuspec
└── repositories.config
/Angular5/.angular-cli.json:
--------------------------------------------------------------------------------
1 | {
2 | "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3 | "project": {
4 | "name": "angular5"
5 | },
6 | "apps": [
7 | {
8 | "root": "src",
9 | "outDir": "dist",
10 | "assets": [
11 | "assets",
12 | "favicon.ico"
13 | ],
14 | "index": "index.html",
15 | "main": "main.ts",
16 | "polyfills": "polyfills.ts",
17 | "test": "test.ts",
18 | "tsconfig": "tsconfig.app.json",
19 | "testTsconfig": "tsconfig.spec.json",
20 | "prefix": "app",
21 | "styles": [
22 | "styles.css"
23 | ],
24 | "scripts": [],
25 | "environmentSource": "environments/environment.ts",
26 | "environments": {
27 | "dev": "environments/environment.ts",
28 | "prod": "environments/environment.prod.ts"
29 | }
30 | }
31 | ],
32 | "e2e": {
33 | "protractor": {
34 | "config": "./protractor.conf.js"
35 | }
36 | },
37 | "lint": [
38 | {
39 | "project": "src/tsconfig.app.json",
40 | "exclude": "**/node_modules/**"
41 | },
42 | {
43 | "project": "src/tsconfig.spec.json",
44 | "exclude": "**/node_modules/**"
45 | },
46 | {
47 | "project": "e2e/tsconfig.e2e.json",
48 | "exclude": "**/node_modules/**"
49 | }
50 | ],
51 | "test": {
52 | "karma": {
53 | "config": "./karma.conf.js"
54 | }
55 | },
56 | "defaults": {
57 | "styleExt": "css",
58 | "component": {}
59 | }
60 | }
61 |
--------------------------------------------------------------------------------
/Angular5/.editorconfig:
--------------------------------------------------------------------------------
1 | # Editor configuration, see http://editorconfig.org
2 | root = true
3 |
4 | [*]
5 | charset = utf-8
6 | indent_style = space
7 | indent_size = 2
8 | insert_final_newline = true
9 | trim_trailing_whitespace = true
10 |
11 | [*.md]
12 | max_line_length = off
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/Angular5/.gitignore:
--------------------------------------------------------------------------------
1 | # See http://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # compiled output
4 | /dist
5 | /dist-server
6 | /tmp
7 | /out-tsc
8 |
9 | # dependencies
10 | /node_modules
11 |
12 | # IDEs and editors
13 | /.idea
14 | .project
15 | .classpath
16 | .c9/
17 | *.launch
18 | .settings/
19 | *.sublime-workspace
20 |
21 | # IDE - VSCode
22 | .vscode/*
23 | !.vscode/settings.json
24 | !.vscode/tasks.json
25 | !.vscode/launch.json
26 | !.vscode/extensions.json
27 |
28 | # misc
29 | /.sass-cache
30 | /connect.lock
31 | /coverage
32 | /libpeerconnection.log
33 | npm-debug.log
34 | testem.log
35 | /typings
36 |
37 | # e2e
38 | /e2e/*.js
39 | /e2e/*.map
40 |
41 | # System Files
42 | .DS_Store
43 | Thumbs.db
44 |
--------------------------------------------------------------------------------
/Angular5/README.md:
--------------------------------------------------------------------------------
1 | # Angular5
2 |
3 | This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.6.6.
4 |
5 | ## Development server
6 |
7 | Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8 |
9 | ## Code scaffolding
10 |
11 | Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12 |
13 | ## Build
14 |
15 | Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
16 |
17 | ## Running unit tests
18 |
19 | Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20 |
21 | ## Running end-to-end tests
22 |
23 | Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24 |
25 | ## Further help
26 |
27 | To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
28 |
--------------------------------------------------------------------------------
/Angular5/e2e/app.e2e-spec.ts:
--------------------------------------------------------------------------------
1 | import { AppPage } from './app.po';
2 |
3 | describe('angular5 App', () => {
4 | let page: AppPage;
5 |
6 | beforeEach(() => {
7 | page = new AppPage();
8 | });
9 |
10 | it('should display welcome message', () => {
11 | page.navigateTo();
12 | expect(page.getParagraphText()).toEqual('Welcome to app!');
13 | });
14 | });
15 |
--------------------------------------------------------------------------------
/Angular5/e2e/app.po.ts:
--------------------------------------------------------------------------------
1 | import { browser, by, element } from 'protractor';
2 |
3 | export class AppPage {
4 | navigateTo() {
5 | return browser.get('/');
6 | }
7 |
8 | getParagraphText() {
9 | return element(by.css('app-root h1')).getText();
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/Angular5/e2e/tsconfig.e2e.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/e2e",
5 | "baseUrl": "./",
6 | "module": "commonjs",
7 | "target": "es5",
8 | "types": [
9 | "jasmine",
10 | "jasminewd2",
11 | "node"
12 | ]
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/Angular5/karma.conf.js:
--------------------------------------------------------------------------------
1 | // Karma configuration file, see link for more information
2 | // https://karma-runner.github.io/1.0/config/configuration-file.html
3 |
4 | module.exports = function (config) {
5 | config.set({
6 | basePath: '',
7 | frameworks: ['jasmine', '@angular/cli'],
8 | plugins: [
9 | require('karma-jasmine'),
10 | require('karma-chrome-launcher'),
11 | require('karma-jasmine-html-reporter'),
12 | require('karma-coverage-istanbul-reporter'),
13 | require('@angular/cli/plugins/karma')
14 | ],
15 | client:{
16 | clearContext: false // leave Jasmine Spec Runner output visible in browser
17 | },
18 | coverageIstanbulReporter: {
19 | reports: [ 'html', 'lcovonly' ],
20 | fixWebpackSourcePaths: true
21 | },
22 | angularCli: {
23 | environment: 'dev'
24 | },
25 | reporters: ['progress', 'kjhtml'],
26 | port: 9876,
27 | colors: true,
28 | logLevel: config.LOG_INFO,
29 | autoWatch: true,
30 | browsers: ['Chrome'],
31 | singleRun: false
32 | });
33 | };
34 |
--------------------------------------------------------------------------------
/Angular5/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angular5",
3 | "version": "0.0.0",
4 | "license": "MIT",
5 | "scripts": {
6 | "ng": "ng",
7 | "start": "ng serve",
8 | "build": "ng build --prod",
9 | "test": "ng test",
10 | "lint": "ng lint",
11 | "e2e": "ng e2e"
12 | },
13 | "private": true,
14 | "dependencies": {
15 | "@angular/animations": "^5.2.0",
16 | "@angular/common": "^5.2.0",
17 | "@angular/compiler": "^5.2.0",
18 | "@angular/core": "^5.2.0",
19 | "@angular/forms": "^5.2.0",
20 | "@angular/http": "^5.2.0",
21 | "@angular/platform-browser": "^5.2.0",
22 | "@angular/platform-browser-dynamic": "^5.2.0",
23 | "@angular/router": "^5.2.0",
24 | "core-js": "^2.4.1",
25 | "rxjs": "^5.5.6",
26 | "zone.js": "^0.8.19"
27 | },
28 | "devDependencies": {
29 | "@angular/cli": "1.6.6",
30 | "@angular/compiler-cli": "^5.2.0",
31 | "@angular/language-service": "^5.2.0",
32 | "@types/jasmine": "~2.8.3",
33 | "@types/jasminewd2": "~2.0.2",
34 | "@types/node": "~6.0.60",
35 | "codelyzer": "^4.0.1",
36 | "jasmine-core": "~2.8.0",
37 | "jasmine-spec-reporter": "~4.2.1",
38 | "karma": "~2.0.0",
39 | "karma-chrome-launcher": "~2.2.0",
40 | "karma-coverage-istanbul-reporter": "^1.2.1",
41 | "karma-jasmine": "~1.1.0",
42 | "karma-jasmine-html-reporter": "^0.2.2",
43 | "protractor": "~5.1.2",
44 | "ts-node": "~4.1.0",
45 | "tslint": "~5.9.1",
46 | "typescript": "~2.5.3"
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/Angular5/protractor.conf.js:
--------------------------------------------------------------------------------
1 | // Protractor configuration file, see link for more information
2 | // https://github.com/angular/protractor/blob/master/lib/config.ts
3 |
4 | const { SpecReporter } = require('jasmine-spec-reporter');
5 |
6 | exports.config = {
7 | allScriptsTimeout: 11000,
8 | specs: [
9 | './e2e/**/*.e2e-spec.ts'
10 | ],
11 | capabilities: {
12 | 'browserName': 'chrome'
13 | },
14 | directConnect: true,
15 | baseUrl: 'http://localhost:4200/',
16 | framework: 'jasmine',
17 | jasmineNodeOpts: {
18 | showColors: true,
19 | defaultTimeoutInterval: 30000,
20 | print: function() {}
21 | },
22 | onPrepare() {
23 | require('ts-node').register({
24 | project: 'e2e/tsconfig.e2e.json'
25 | });
26 | jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
27 | }
28 | };
29 |
--------------------------------------------------------------------------------
/Angular5/src/app/app.component.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/Angular5/src/app/app.component.css
--------------------------------------------------------------------------------
/Angular5/src/app/app.component.html:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Angular5/src/app/app.component.spec.ts:
--------------------------------------------------------------------------------
1 | import { TestBed, async } from '@angular/core/testing';
2 | import { AppComponent } from './app.component';
3 | describe('AppComponent', () => {
4 | beforeEach(async(() => {
5 | TestBed.configureTestingModule({
6 | declarations: [
7 | AppComponent
8 | ],
9 | }).compileComponents();
10 | }));
11 | it('should create the app', async(() => {
12 | const fixture = TestBed.createComponent(AppComponent);
13 | const app = fixture.debugElement.componentInstance;
14 | expect(app).toBeTruthy();
15 | }));
16 | it(`should have as title 'app'`, async(() => {
17 | const fixture = TestBed.createComponent(AppComponent);
18 | const app = fixture.debugElement.componentInstance;
19 | expect(app.title).toEqual('app');
20 | }));
21 | it('should render title in a h1 tag', async(() => {
22 | const fixture = TestBed.createComponent(AppComponent);
23 | fixture.detectChanges();
24 | const compiled = fixture.debugElement.nativeElement;
25 | expect(compiled.querySelector('h1').textContent).toContain('Welcome to app!');
26 | }));
27 | });
28 |
--------------------------------------------------------------------------------
/Angular5/src/app/app.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | selector: 'app-root',
5 | templateUrl: './app.component.html',
6 | styleUrls: ['./app.component.css']
7 | })
8 | export class AppComponent {
9 | title = 'app';
10 | }
11 |
--------------------------------------------------------------------------------
/Angular5/src/app/app.module.ts:
--------------------------------------------------------------------------------
1 | import { BrowserModule } from '@angular/platform-browser';
2 | import { NgModule } from '@angular/core';
3 | import { FormsModule} from '@angular/forms';
4 | import { HttpClientModule } from '@angular/common/http';
5 |
6 |
7 | import { AppComponent } from './app.component';
8 | import { UploadImageComponent } from './upload-image/upload-image.component';
9 |
10 |
11 | @NgModule({
12 | declarations: [
13 | AppComponent,
14 | UploadImageComponent
15 | ],
16 | imports: [
17 | BrowserModule,
18 | FormsModule,
19 | HttpClientModule
20 | ],
21 | providers: [],
22 | bootstrap: [AppComponent]
23 | })
24 | export class AppModule { }
25 |
--------------------------------------------------------------------------------
/Angular5/src/app/shared/upload-image.service.spec.ts:
--------------------------------------------------------------------------------
1 | import { TestBed, inject } from '@angular/core/testing';
2 |
3 | import { UploadImageService } from './upload-image.service';
4 |
5 | describe('UploadImageService', () => {
6 | beforeEach(() => {
7 | TestBed.configureTestingModule({
8 | providers: [UploadImageService]
9 | });
10 | });
11 |
12 | it('should be created', inject([UploadImageService], (service: UploadImageService) => {
13 | expect(service).toBeTruthy();
14 | }));
15 | });
16 |
--------------------------------------------------------------------------------
/Angular5/src/app/shared/upload-image.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@angular/core';
2 | import { HttpClient } from '@angular/common/http';
3 |
4 | @Injectable()
5 | export class UploadImageService {
6 |
7 | constructor(private http : HttpClient) { }
8 |
9 | postFile(caption: string, fileToUpload: File) {
10 | const endpoint = 'http://localhost:28101/api/UploadImage';
11 | const formData: FormData = new FormData();
12 | formData.append('Image', fileToUpload, fileToUpload.name);
13 | formData.append('ImageCaption', caption);
14 | return this.http
15 | .post(endpoint, formData);
16 | }
17 |
18 | }
19 |
--------------------------------------------------------------------------------
/Angular5/src/app/upload-image/upload-image.component.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/Angular5/src/app/upload-image/upload-image.component.css
--------------------------------------------------------------------------------
/Angular5/src/app/upload-image/upload-image.component.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
Image Library
6 |
7 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/Angular5/src/app/upload-image/upload-image.component.spec.ts:
--------------------------------------------------------------------------------
1 | import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2 |
3 | import { UploadImageComponent } from './upload-image.component';
4 |
5 | describe('UploadImageComponent', () => {
6 | let component: UploadImageComponent;
7 | let fixture: ComponentFixture;
8 |
9 | beforeEach(async(() => {
10 | TestBed.configureTestingModule({
11 | declarations: [ UploadImageComponent ]
12 | })
13 | .compileComponents();
14 | }));
15 |
16 | beforeEach(() => {
17 | fixture = TestBed.createComponent(UploadImageComponent);
18 | component = fixture.componentInstance;
19 | fixture.detectChanges();
20 | });
21 |
22 | it('should create', () => {
23 | expect(component).toBeTruthy();
24 | });
25 | });
26 |
--------------------------------------------------------------------------------
/Angular5/src/app/upload-image/upload-image.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit } from '@angular/core';
2 | import { UploadImageService } from '../shared/upload-image.service';
3 |
4 | @Component({
5 | selector: 'app-upload-image',
6 | templateUrl: './upload-image.component.html',
7 | styleUrls: ['./upload-image.component.css'],
8 | providers:[UploadImageService]
9 | })
10 | export class UploadImageComponent implements OnInit {
11 | imageUrl: string = "/assets/img/default-image.png";
12 | fileToUpload: File = null;
13 | constructor(private imageService : UploadImageService) { }
14 |
15 | ngOnInit() {
16 | }
17 |
18 | handleFileInput(file: FileList) {
19 | this.fileToUpload = file.item(0);
20 |
21 | //Show image preview
22 | var reader = new FileReader();
23 | reader.onload = (event:any) => {
24 | this.imageUrl = event.target.result;
25 | }
26 | reader.readAsDataURL(this.fileToUpload);
27 | }
28 |
29 | OnSubmit(Caption,Image){
30 | this.imageService.postFile(Caption.value,this.fileToUpload).subscribe(
31 | data =>{
32 | console.log('done');
33 | Caption.value = null;
34 | Image.value = null;
35 | this.imageUrl = "/assets/img/default-image.png";
36 | }
37 | );
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/Angular5/src/assets/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/Angular5/src/assets/.gitkeep
--------------------------------------------------------------------------------
/Angular5/src/assets/img/default-image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/Angular5/src/assets/img/default-image.png
--------------------------------------------------------------------------------
/Angular5/src/environments/environment.prod.ts:
--------------------------------------------------------------------------------
1 | export const environment = {
2 | production: true
3 | };
4 |
--------------------------------------------------------------------------------
/Angular5/src/environments/environment.ts:
--------------------------------------------------------------------------------
1 | // The file contents for the current environment will overwrite these during build.
2 | // The build system defaults to the dev environment which uses `environment.ts`, but if you do
3 | // `ng build --env=prod` then `environment.prod.ts` will be used instead.
4 | // The list of which env maps to which file can be found in `.angular-cli.json`.
5 |
6 | export const environment = {
7 | production: false
8 | };
9 |
--------------------------------------------------------------------------------
/Angular5/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/Angular5/src/favicon.ico
--------------------------------------------------------------------------------
/Angular5/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Angular5
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/Angular5/src/main.ts:
--------------------------------------------------------------------------------
1 | import { enableProdMode } from '@angular/core';
2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3 |
4 | import { AppModule } from './app/app.module';
5 | import { environment } from './environments/environment';
6 |
7 | if (environment.production) {
8 | enableProdMode();
9 | }
10 |
11 | platformBrowserDynamic().bootstrapModule(AppModule)
12 | .catch(err => console.log(err));
13 |
--------------------------------------------------------------------------------
/Angular5/src/polyfills.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * This file includes polyfills needed by Angular and is loaded before the app.
3 | * You can add your own extra polyfills to this file.
4 | *
5 | * This file is divided into 2 sections:
6 | * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
7 | * 2. Application imports. Files imported after ZoneJS that should be loaded before your main
8 | * file.
9 | *
10 | * The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11 | * automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12 | * Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
13 | *
14 | * Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
15 | */
16 |
17 | /***************************************************************************************************
18 | * BROWSER POLYFILLS
19 | */
20 |
21 | /** IE9, IE10 and IE11 requires all of the following polyfills. **/
22 | // import 'core-js/es6/symbol';
23 | // import 'core-js/es6/object';
24 | // import 'core-js/es6/function';
25 | // import 'core-js/es6/parse-int';
26 | // import 'core-js/es6/parse-float';
27 | // import 'core-js/es6/number';
28 | // import 'core-js/es6/math';
29 | // import 'core-js/es6/string';
30 | // import 'core-js/es6/date';
31 | // import 'core-js/es6/array';
32 | // import 'core-js/es6/regexp';
33 | // import 'core-js/es6/map';
34 | // import 'core-js/es6/weak-map';
35 | // import 'core-js/es6/set';
36 |
37 | /** IE10 and IE11 requires the following for NgClass support on SVG elements */
38 | // import 'classlist.js'; // Run `npm install --save classlist.js`.
39 |
40 | /** IE10 and IE11 requires the following for the Reflect API. */
41 | // import 'core-js/es6/reflect';
42 |
43 |
44 | /** Evergreen browsers require these. **/
45 | // Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
46 | import 'core-js/es7/reflect';
47 |
48 |
49 | /**
50 | * Required to support Web Animations `@angular/platform-browser/animations`.
51 | * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation
52 | **/
53 | // import 'web-animations-js'; // Run `npm install --save web-animations-js`.
54 |
55 |
56 |
57 | /***************************************************************************************************
58 | * Zone JS is required by default for Angular itself.
59 | */
60 | import 'zone.js/dist/zone'; // Included with Angular CLI.
61 |
62 |
63 |
64 | /***************************************************************************************************
65 | * APPLICATION IMPORTS
66 | */
67 |
--------------------------------------------------------------------------------
/Angular5/src/styles.css:
--------------------------------------------------------------------------------
1 | /* You can add global styles to this file, and also import other style files */
2 |
--------------------------------------------------------------------------------
/Angular5/src/test.ts:
--------------------------------------------------------------------------------
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files
2 |
3 | import 'zone.js/dist/zone-testing';
4 | import { getTestBed } from '@angular/core/testing';
5 | import {
6 | BrowserDynamicTestingModule,
7 | platformBrowserDynamicTesting
8 | } from '@angular/platform-browser-dynamic/testing';
9 |
10 | declare const require: any;
11 |
12 | // First, initialize the Angular testing environment.
13 | getTestBed().initTestEnvironment(
14 | BrowserDynamicTestingModule,
15 | platformBrowserDynamicTesting()
16 | );
17 | // Then we find all the tests.
18 | const context = require.context('./', true, /\.spec\.ts$/);
19 | // And load the modules.
20 | context.keys().map(context);
21 |
--------------------------------------------------------------------------------
/Angular5/src/tsconfig.app.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/app",
5 | "baseUrl": "./",
6 | "module": "es2015",
7 | "types": []
8 | },
9 | "exclude": [
10 | "test.ts",
11 | "**/*.spec.ts"
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/Angular5/src/tsconfig.spec.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.json",
3 | "compilerOptions": {
4 | "outDir": "../out-tsc/spec",
5 | "baseUrl": "./",
6 | "module": "commonjs",
7 | "types": [
8 | "jasmine",
9 | "node"
10 | ]
11 | },
12 | "files": [
13 | "test.ts"
14 | ],
15 | "include": [
16 | "**/*.spec.ts",
17 | "**/*.d.ts"
18 | ]
19 | }
20 |
--------------------------------------------------------------------------------
/Angular5/src/typings.d.ts:
--------------------------------------------------------------------------------
1 | /* SystemJS module definition */
2 | declare var module: NodeModule;
3 | interface NodeModule {
4 | id: string;
5 | }
6 |
--------------------------------------------------------------------------------
/Angular5/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compileOnSave": false,
3 | "compilerOptions": {
4 | "outDir": "./dist/out-tsc",
5 | "sourceMap": true,
6 | "declaration": false,
7 | "moduleResolution": "node",
8 | "emitDecoratorMetadata": true,
9 | "experimentalDecorators": true,
10 | "target": "es5",
11 | "typeRoots": [
12 | "node_modules/@types"
13 | ],
14 | "lib": [
15 | "es2017",
16 | "dom"
17 | ]
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/Angular5/tslint.json:
--------------------------------------------------------------------------------
1 | {
2 | "rulesDirectory": [
3 | "node_modules/codelyzer"
4 | ],
5 | "rules": {
6 | "arrow-return-shorthand": true,
7 | "callable-types": true,
8 | "class-name": true,
9 | "comment-format": [
10 | true,
11 | "check-space"
12 | ],
13 | "curly": true,
14 | "deprecation": {
15 | "severity": "warn"
16 | },
17 | "eofline": true,
18 | "forin": true,
19 | "import-blacklist": [
20 | true,
21 | "rxjs",
22 | "rxjs/Rx"
23 | ],
24 | "import-spacing": true,
25 | "indent": [
26 | true,
27 | "spaces"
28 | ],
29 | "interface-over-type-literal": true,
30 | "label-position": true,
31 | "max-line-length": [
32 | true,
33 | 140
34 | ],
35 | "member-access": false,
36 | "member-ordering": [
37 | true,
38 | {
39 | "order": [
40 | "static-field",
41 | "instance-field",
42 | "static-method",
43 | "instance-method"
44 | ]
45 | }
46 | ],
47 | "no-arg": true,
48 | "no-bitwise": true,
49 | "no-console": [
50 | true,
51 | "debug",
52 | "info",
53 | "time",
54 | "timeEnd",
55 | "trace"
56 | ],
57 | "no-construct": true,
58 | "no-debugger": true,
59 | "no-duplicate-super": true,
60 | "no-empty": false,
61 | "no-empty-interface": true,
62 | "no-eval": true,
63 | "no-inferrable-types": [
64 | true,
65 | "ignore-params"
66 | ],
67 | "no-misused-new": true,
68 | "no-non-null-assertion": true,
69 | "no-shadowed-variable": true,
70 | "no-string-literal": false,
71 | "no-string-throw": true,
72 | "no-switch-case-fall-through": true,
73 | "no-trailing-whitespace": true,
74 | "no-unnecessary-initializer": true,
75 | "no-unused-expression": true,
76 | "no-use-before-declare": true,
77 | "no-var-keyword": true,
78 | "object-literal-sort-keys": false,
79 | "one-line": [
80 | true,
81 | "check-open-brace",
82 | "check-catch",
83 | "check-else",
84 | "check-whitespace"
85 | ],
86 | "prefer-const": true,
87 | "quotemark": [
88 | true,
89 | "single"
90 | ],
91 | "radix": true,
92 | "semicolon": [
93 | true,
94 | "always"
95 | ],
96 | "triple-equals": [
97 | true,
98 | "allow-null-check"
99 | ],
100 | "typedef-whitespace": [
101 | true,
102 | {
103 | "call-signature": "nospace",
104 | "index-signature": "nospace",
105 | "parameter": "nospace",
106 | "property-declaration": "nospace",
107 | "variable-declaration": "nospace"
108 | }
109 | ],
110 | "unified-signatures": true,
111 | "variable-name": false,
112 | "whitespace": [
113 | true,
114 | "check-branch",
115 | "check-decl",
116 | "check-operator",
117 | "check-separator",
118 | "check-type"
119 | ],
120 | "directive-selector": [
121 | true,
122 | "attribute",
123 | "app",
124 | "camelCase"
125 | ],
126 | "component-selector": [
127 | true,
128 | "element",
129 | "app",
130 | "kebab-case"
131 | ],
132 | "no-output-on-prefix": true,
133 | "use-input-property-decorator": true,
134 | "use-output-property-decorator": true,
135 | "use-host-property-decorator": true,
136 | "no-input-rename": true,
137 | "no-output-rename": true,
138 | "use-life-cycle-interface": true,
139 | "use-pipe-transform-interface": true,
140 | "component-class-suffix": true,
141 | "directive-class-suffix": true
142 | }
143 | }
144 |
--------------------------------------------------------------------------------
/DBScript.sql:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/DBScript.sql
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Image Upload in Angular 5 With WebAPI
2 | Content Discussed :
3 | - Design Angular 5 Form With Image Up loader With Preview
4 | - Post Image/File From Angular Form
5 | - Upload / Save Image in Web API
6 |
7 | ## Get the Code
8 |
9 | ```
10 | $ git clone https://github.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI.git
11 | $ cd Image-Upload-in-Angular-5-With-WebAPI/Angular5
12 | $ npm install
13 | //run the app
14 | $ ng serve
15 | //update Web API DB connection string
16 | ```
17 |
18 | ## How it works ?
19 |
20 | :tv: Video tutorial on this same topic
21 | Url : https://youtu.be/c61wr1ZsHzY
22 |
23 |
26 |
27 |
28 |
29 | | :bar_chart: | List of Tutorials | | :moneybag: | Support Us |
30 | |--------------------------:|:---------------------|---|---------------------:|:-------------------------------------|
31 | | Angular |http://bit.ly/2KQN9xF | |Paypal | https://goo.gl/bPcyXW |
32 | | Asp.Net Core |http://bit.ly/30fPDMg | |Amazon Affiliate | https://geni.us/JDzpE |
33 | | React |http://bit.ly/325temF | |
34 | | Python |http://bit.ly/2ws4utg | | :point_right: | Follow Us |
35 | | Node.js |https://goo.gl/viJcFs | |Website |http://www.codaffection.com |
36 | | Asp.Net MVC |https://goo.gl/gvjUJ7 | |YouTube |https://www.youtube.com/codaffection |
37 | | Flutter |https://bit.ly/3ggmmJz| |Facebook |https://www.facebook.com/codaffection |
38 | | Web API |https://goo.gl/itVayJ | |Twitter |https://twitter.com/CodAffection |
39 | | MEAN Stack |https://goo.gl/YJPPAH | |
40 | | C# Tutorial |https://goo.gl/s1zJxo | |
41 | | Asp.Net WebForm |https://goo.gl/GXC2aJ | |
42 | | C# WinForm |https://goo.gl/vHS9Hd | |
43 | | MS SQL |https://goo.gl/MLYS9e | |
44 | | Crystal Report |https://goo.gl/5Vou7t | |
45 | | CG Exercises in C Program |https://goo.gl/qEWJCs | |
46 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.21005.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebAPI", "WebAPI\WebAPI.csproj", "{F1522619-B9A9-4717-8045-7A3C729D1D33}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {F1522619-B9A9-4717-8045-7A3C729D1D33}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {F1522619-B9A9-4717-8045-7A3C729D1D33}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {F1522619-B9A9-4717-8045-7A3C729D1D33}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {F1522619-B9A9-4717-8045-7A3C729D1D33}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | EndGlobal
23 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI.v12.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI.v12.suo
--------------------------------------------------------------------------------
/WebAPI/WebAPI/App_Start/BundleConfig.cs:
--------------------------------------------------------------------------------
1 | using System.Web;
2 | using System.Web.Optimization;
3 |
4 | namespace WebAPI
5 | {
6 | public class BundleConfig
7 | {
8 | // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
9 | public static void RegisterBundles(BundleCollection bundles)
10 | {
11 | bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12 | "~/Scripts/jquery-{version}.js"));
13 |
14 | // Use the development version of Modernizr to develop with and learn from. Then, when you're
15 | // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
16 | bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
17 | "~/Scripts/modernizr-*"));
18 |
19 | bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
20 | "~/Scripts/bootstrap.js",
21 | "~/Scripts/respond.js"));
22 |
23 | bundles.Add(new StyleBundle("~/Content/css").Include(
24 | "~/Content/bootstrap.css",
25 | "~/Content/site.css"));
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/App_Start/FilterConfig.cs:
--------------------------------------------------------------------------------
1 | using System.Web;
2 | using System.Web.Mvc;
3 |
4 | namespace WebAPI
5 | {
6 | public class FilterConfig
7 | {
8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9 | {
10 | filters.Add(new HandleErrorAttribute());
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/App_Start/RouteConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 | using System.Web.Routing;
7 |
8 | namespace WebAPI
9 | {
10 | public class RouteConfig
11 | {
12 | public static void RegisterRoutes(RouteCollection routes)
13 | {
14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15 |
16 | routes.MapRoute(
17 | name: "Default",
18 | url: "{controller}/{action}/{id}",
19 | defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
20 | );
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/App_Start/WebApiConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web.Http;
5 | using System.Web.Http.Cors;
6 |
7 | namespace WebAPI
8 | {
9 | public static class WebApiConfig
10 | {
11 | public static void Register(HttpConfiguration config)
12 | {
13 | // Web API configuration and services
14 | config.EnableCors(new EnableCorsAttribute("http://localhost:4200", headers: "*", methods: "*"));
15 |
16 | // Web API routes
17 | config.MapHttpAttributeRoutes();
18 |
19 | config.Routes.MapHttpRoute(
20 | name: "DefaultApi",
21 | routeTemplate: "api/{controller}/{id}",
22 | defaults: new { id = RouteParameter.Optional }
23 | );
24 | }
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/ApiDescriptionExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text;
3 | using System.Web;
4 | using System.Web.Http.Description;
5 |
6 | namespace WebAPI.Areas.HelpPage
7 | {
8 | public static class ApiDescriptionExtensions
9 | {
10 | ///
11 | /// Generates an URI-friendly ID for the . E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}"
12 | ///
13 | /// The .
14 | /// The ID as a string.
15 | public static string GetFriendlyId(this ApiDescription description)
16 | {
17 | string path = description.RelativePath;
18 | string[] urlParts = path.Split('?');
19 | string localPath = urlParts[0];
20 | string queryKeyString = null;
21 | if (urlParts.Length > 1)
22 | {
23 | string query = urlParts[1];
24 | string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys;
25 | queryKeyString = String.Join("_", queryKeys);
26 | }
27 |
28 | StringBuilder friendlyPath = new StringBuilder();
29 | friendlyPath.AppendFormat("{0}-{1}",
30 | description.HttpMethod.Method,
31 | localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty));
32 | if (queryKeyString != null)
33 | {
34 | friendlyPath.AppendFormat("_{0}", queryKeyString);
35 | }
36 | return friendlyPath.ToString();
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/App_Start/HelpPageConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Net.Http.Headers;
4 | using System.Web;
5 | using System.Web.Http;
6 |
7 | namespace WebAPI.Areas.HelpPage
8 | {
9 | ///
10 | /// Use this class to customize the Help Page.
11 | /// For example you can set a custom to supply the documentation
12 | /// or you can provide the samples for the requests/responses.
13 | ///
14 | public static class HelpPageConfig
15 | {
16 | public static void Register(HttpConfiguration config)
17 | {
18 | //// Uncomment the following to use the documentation from XML documentation file.
19 | //config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml")));
20 |
21 | //// Uncomment the following to use "sample string" as the sample for all actions that have string as the body parameter or return type.
22 | //// Also, the string arrays will be used for IEnumerable. The sample objects will be serialized into different media type
23 | //// formats by the available formatters.
24 | //config.SetSampleObjects(new Dictionary
25 | //{
26 | // {typeof(string), "sample string"},
27 | // {typeof(IEnumerable), new string[]{"sample 1", "sample 2"}}
28 | //});
29 |
30 | //// Uncomment the following to use "[0]=foo&[1]=bar" directly as the sample for all actions that support form URL encoded format
31 | //// and have IEnumerable as the body parameter or return type.
32 | //config.SetSampleForType("[0]=foo&[1]=bar", new MediaTypeHeaderValue("application/x-www-form-urlencoded"), typeof(IEnumerable));
33 |
34 | //// Uncomment the following to use "1234" directly as the request sample for media type "text/plain" on the controller named "Values"
35 | //// and action named "Put".
36 | //config.SetSampleRequest("1234", new MediaTypeHeaderValue("text/plain"), "Values", "Put");
37 |
38 | //// Uncomment the following to use the image on "../images/aspNetHome.png" directly as the response sample for media type "image/png"
39 | //// on the controller named "Values" and action named "Get" with parameter "id".
40 | //config.SetSampleResponse(new ImageSample("../images/aspNetHome.png"), new MediaTypeHeaderValue("image/png"), "Values", "Get", "id");
41 |
42 | //// Uncomment the following to correct the sample request when the action expects an HttpRequestMessage with ObjectContent.
43 | //// The sample will be generated as if the controller named "Values" and action named "Get" were having string as the body parameter.
44 | //config.SetActualRequestType(typeof(string), "Values", "Get");
45 |
46 | //// Uncomment the following to correct the sample response when the action returns an HttpResponseMessage with ObjectContent.
47 | //// The sample will be generated as if the controller named "Values" and action named "Post" were returning a string.
48 | //config.SetActualResponseType(typeof(string), "Values", "Post");
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Controllers/HelpController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Web.Http;
3 | using System.Web.Mvc;
4 | using WebAPI.Areas.HelpPage.Models;
5 |
6 | namespace WebAPI.Areas.HelpPage.Controllers
7 | {
8 | ///
9 | /// The controller that will handle requests for the help page.
10 | ///
11 | public class HelpController : Controller
12 | {
13 | public HelpController()
14 | : this(GlobalConfiguration.Configuration)
15 | {
16 | }
17 |
18 | public HelpController(HttpConfiguration config)
19 | {
20 | Configuration = config;
21 | }
22 |
23 | public HttpConfiguration Configuration { get; private set; }
24 |
25 | public ActionResult Index()
26 | {
27 | ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider();
28 | return View(Configuration.Services.GetApiExplorer().ApiDescriptions);
29 | }
30 |
31 | public ActionResult Api(string apiId)
32 | {
33 | if (!String.IsNullOrEmpty(apiId))
34 | {
35 | HelpPageApiModel apiModel = Configuration.GetHelpPageApiModel(apiId);
36 | if (apiModel != null)
37 | {
38 | return View(apiModel);
39 | }
40 | }
41 |
42 | return View("Error");
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/HelpPage.css:
--------------------------------------------------------------------------------
1 | pre.wrapped {
2 | white-space: -moz-pre-wrap;
3 | white-space: -pre-wrap;
4 | white-space: -o-pre-wrap;
5 | white-space: pre-wrap;
6 | }
7 |
8 | .warning-message-container {
9 | margin-top: 20px;
10 | padding: 0 10px;
11 | color: #525252;
12 | background: #EFDCA9;
13 | border: 1px solid #CCCCCC;
14 | }
15 |
16 | .help-page-table {
17 | width: 100%;
18 | border-collapse: collapse;
19 | text-align: left;
20 | margin: 0px 0px 20px 0px;
21 | border-top: 2px solid #D4D4D4;
22 | }
23 |
24 | .help-page-table th {
25 | text-align: left;
26 | font-weight: bold;
27 | border-bottom: 2px solid #D4D4D4;
28 | padding: 8px 6px 8px 6px;
29 | }
30 |
31 | .help-page-table td {
32 | border-bottom: 2px solid #D4D4D4;
33 | padding: 15px 8px 15px 8px;
34 | vertical-align: top;
35 | }
36 |
37 | .help-page-table pre, .help-page-table p {
38 | margin: 0px;
39 | padding: 0px;
40 | font-family: inherit;
41 | font-size: 100%;
42 | }
43 |
44 | .help-page-table tbody tr:hover td {
45 | background-color: #F3F3F3;
46 | }
47 |
48 | a:hover {
49 | background-color: transparent;
50 | }
51 |
52 | .sample-header {
53 | border: 2px solid #D4D4D4;
54 | background: #76B8DB;
55 | color: #FFFFFF;
56 | padding: 8px 15px;
57 | border-bottom: none;
58 | display: inline-block;
59 | margin: 10px 0px 0px 0px;
60 | }
61 |
62 | .sample-content {
63 | display: block;
64 | border-width: 0;
65 | padding: 15px 20px;
66 | background: #FFFFFF;
67 | border: 2px solid #D4D4D4;
68 | margin: 0px 0px 10px 0px;
69 | }
70 |
71 | .api-name {
72 | width: 40%;
73 | }
74 |
75 | .api-documentation {
76 | width: 60%;
77 | }
78 |
79 | .parameter-name {
80 | width: 20%;
81 | }
82 |
83 | .parameter-documentation {
84 | width: 50%;
85 | }
86 |
87 | .parameter-source {
88 | width: 30%;
89 | }
90 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/HelpPageAreaRegistration.cs:
--------------------------------------------------------------------------------
1 | using System.Web.Http;
2 | using System.Web.Mvc;
3 |
4 | namespace WebAPI.Areas.HelpPage
5 | {
6 | public class HelpPageAreaRegistration : AreaRegistration
7 | {
8 | public override string AreaName
9 | {
10 | get
11 | {
12 | return "HelpPage";
13 | }
14 | }
15 |
16 | public override void RegisterArea(AreaRegistrationContext context)
17 | {
18 | context.MapRoute(
19 | "HelpPage_Default",
20 | "Help/{action}/{apiId}",
21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional });
22 |
23 | HelpPageConfig.Register(GlobalConfiguration.Configuration);
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Models/HelpPageApiModel.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Collections.ObjectModel;
3 | using System.Net.Http.Headers;
4 | using System.Web.Http.Description;
5 |
6 | namespace WebAPI.Areas.HelpPage.Models
7 | {
8 | ///
9 | /// The model that represents an API displayed on the help page.
10 | ///
11 | public class HelpPageApiModel
12 | {
13 | ///
14 | /// Initializes a new instance of the class.
15 | ///
16 | public HelpPageApiModel()
17 | {
18 | SampleRequests = new Dictionary();
19 | SampleResponses = new Dictionary();
20 | ErrorMessages = new Collection();
21 | }
22 |
23 | ///
24 | /// Gets or sets the that describes the API.
25 | ///
26 | public ApiDescription ApiDescription { get; set; }
27 |
28 | ///
29 | /// Gets the sample requests associated with the API.
30 | ///
31 | public IDictionary SampleRequests { get; private set; }
32 |
33 | ///
34 | /// Gets the sample responses associated with the API.
35 | ///
36 | public IDictionary SampleResponses { get; private set; }
37 |
38 | ///
39 | /// Gets the error messages associated with this model.
40 | ///
41 | public Collection ErrorMessages { get; private set; }
42 | }
43 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/ImageSample.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace WebAPI.Areas.HelpPage
4 | {
5 | ///
6 | /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class.
7 | ///
8 | public class ImageSample
9 | {
10 | ///
11 | /// Initializes a new instance of the class.
12 | ///
13 | /// The URL of an image.
14 | public ImageSample(string src)
15 | {
16 | if (src == null)
17 | {
18 | throw new ArgumentNullException("src");
19 | }
20 | Src = src;
21 | }
22 |
23 | public string Src { get; private set; }
24 |
25 | public override bool Equals(object obj)
26 | {
27 | ImageSample other = obj as ImageSample;
28 | return other != null && Src == other.Src;
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | return Src.GetHashCode();
34 | }
35 |
36 | public override string ToString()
37 | {
38 | return Src;
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/InvalidSample.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace WebAPI.Areas.HelpPage
4 | {
5 | ///
6 | /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class.
7 | ///
8 | public class InvalidSample
9 | {
10 | public InvalidSample(string errorMessage)
11 | {
12 | if (errorMessage == null)
13 | {
14 | throw new ArgumentNullException("errorMessage");
15 | }
16 | ErrorMessage = errorMessage;
17 | }
18 |
19 | public string ErrorMessage { get; private set; }
20 |
21 | public override bool Equals(object obj)
22 | {
23 | InvalidSample other = obj as InvalidSample;
24 | return other != null && ErrorMessage == other.ErrorMessage;
25 | }
26 |
27 | public override int GetHashCode()
28 | {
29 | return ErrorMessage.GetHashCode();
30 | }
31 |
32 | public override string ToString()
33 | {
34 | return ErrorMessage;
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/SampleDirection.cs:
--------------------------------------------------------------------------------
1 | namespace WebAPI.Areas.HelpPage
2 | {
3 | ///
4 | /// Indicates whether the sample is used for request or response
5 | ///
6 | public enum SampleDirection
7 | {
8 | Request = 0,
9 | Response
10 | }
11 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/SampleGeneration/TextSample.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace WebAPI.Areas.HelpPage
4 | {
5 | ///
6 | /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
7 | ///
8 | public class TextSample
9 | {
10 | public TextSample(string text)
11 | {
12 | if (text == null)
13 | {
14 | throw new ArgumentNullException("text");
15 | }
16 | Text = text;
17 | }
18 |
19 | public string Text { get; private set; }
20 |
21 | public override bool Equals(object obj)
22 | {
23 | TextSample other = obj as TextSample;
24 | return other != null && Text == other.Text;
25 | }
26 |
27 | public override int GetHashCode()
28 | {
29 | return Text.GetHashCode();
30 | }
31 |
32 | public override string ToString()
33 | {
34 | return Text;
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/Api.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using WebAPI.Areas.HelpPage.Models
3 | @model HelpPageApiModel
4 |
5 | @{
6 | var description = Model.ApiDescription;
7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath;
8 | }
9 |
10 |
11 |
12 |
13 |
14 | @Html.ActionLink("Help Page Home", "Index")
15 |
16 |
17 |
18 |
19 | @Html.DisplayFor(m => Model)
20 |
21 |
22 |
23 | @section Scripts {
24 |
25 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using System.Web.Http.Controllers
3 | @using System.Web.Http.Description
4 | @using WebAPI.Areas.HelpPage
5 | @using WebAPI.Areas.HelpPage.Models
6 | @model IGrouping
7 |
8 | @{
9 | var controllerDocumentation = ViewBag.DocumentationProvider != null ?
10 | ViewBag.DocumentationProvider.GetDocumentation(Model.Key) :
11 | null;
12 | }
13 |
14 | @Model.Key.ControllerName
15 | @if (!String.IsNullOrEmpty(controllerDocumentation))
16 | {
17 | @controllerDocumentation
18 | }
19 |
20 |
21 | API Description
22 |
23 |
24 | @foreach (var api in Model)
25 | {
26 |
27 | @api.HttpMethod.Method @api.RelativePath
28 |
29 | @if (api.Documentation != null)
30 | {
31 | @api.Documentation
32 | }
33 | else
34 | {
35 | No documentation available.
36 | }
37 |
38 |
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using WebAPI.Areas.HelpPage.Models
3 | @model HelpPageApiModel
4 |
5 | @{
6 | var description = Model.ApiDescription;
7 | bool hasParameters = description.ParameterDescriptions.Count > 0;
8 | bool hasRequestSamples = Model.SampleRequests.Count > 0;
9 | bool hasResponseSamples = Model.SampleResponses.Count > 0;
10 | }
11 | @description.HttpMethod.Method @description.RelativePath
12 |
13 | @if (description.Documentation != null)
14 | {
15 |
@description.Documentation
16 | }
17 | else
18 | {
19 |
No documentation available.
20 | }
21 |
22 | @if (hasParameters || hasRequestSamples)
23 | {
24 |
Request Information
25 | if (hasParameters)
26 | {
27 |
Parameters
28 | @Html.DisplayFor(apiModel => apiModel.ApiDescription.ParameterDescriptions, "Parameters")
29 | }
30 | if (hasRequestSamples)
31 | {
32 |
Request body formats
33 | @Html.DisplayFor(apiModel => apiModel.SampleRequests, "Samples")
34 | }
35 | }
36 |
37 | @if (hasResponseSamples)
38 | {
39 |
Response Information
40 | if (description.ResponseDescription.Documentation != null)
41 | {
42 |
@description.ResponseDescription.Documentation
43 | }
44 | else
45 | {
46 |
No documentation available.
47 | }
48 |
Response body formats
49 | @Html.DisplayFor(apiModel => apiModel.SampleResponses, "Samples")
50 | }
51 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml:
--------------------------------------------------------------------------------
1 | @using WebAPI.Areas.HelpPage
2 | @model ImageSample
3 |
4 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml:
--------------------------------------------------------------------------------
1 | @using WebAPI.Areas.HelpPage
2 | @model InvalidSample
3 |
4 | @if (HttpContext.Current.IsDebuggingEnabled)
5 | {
6 |
7 |
@Model.ErrorMessage
8 |
9 | }
10 | else
11 | {
12 | Sample not available.
13 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Collections.ObjectModel
2 | @using System.Web.Http.Description
3 | @using System.Threading
4 | @model Collection
5 |
6 |
7 |
8 | Name Description Additional information
9 |
10 |
11 | @foreach (ApiParameterDescription parameter in Model)
12 | {
13 | string parameterDocumentation = parameter.Documentation != null ?
14 | parameter.Documentation :
15 | "No documentation available.";
16 |
17 | // Don't show CancellationToken because it's a special parameter
18 | if (parameter.ParameterDescriptor == null ||
19 | (parameter.ParameterDescriptor != null &&
20 | !typeof(CancellationToken).IsAssignableFrom(parameter.ParameterDescriptor.ParameterType)))
21 | {
22 |
23 | @parameter.Name
24 | @parameterDocumentation
25 |
26 | @switch (parameter.Source)
27 | {
28 | case ApiParameterSource.FromBody:
29 | Define this parameter in the request body .
30 | break;
31 | case ApiParameterSource.FromUri:
32 | Define this parameter in the request URI .
33 | break;
34 | case ApiParameterSource.Unknown:
35 | default:
36 | None.
37 | break;
38 | }
39 |
40 |
41 | }
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Net.Http.Headers
2 | @model Dictionary
3 |
4 | @{
5 | // Group the samples into a single tab if they are the same.
6 | Dictionary samples = Model.GroupBy(pair => pair.Value).ToDictionary(
7 | pair => String.Join(", ", pair.Select(m => m.Key.ToString()).ToArray()),
8 | pair => pair.Key);
9 | var mediaTypes = samples.Keys;
10 | }
11 |
12 | @foreach (var mediaType in mediaTypes)
13 | {
14 |
15 |
16 |
Sample:
17 | @{
18 | var sample = samples[mediaType];
19 | if (sample == null)
20 | {
21 |
Sample not available.
22 | }
23 | else
24 | {
25 | @Html.DisplayFor(s => sample);
26 | }
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml:
--------------------------------------------------------------------------------
1 | @using WebAPI.Areas.HelpPage
2 | @model TextSample
3 |
4 |
5 | @Model.Text
6 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Help/Index.cshtml:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using System.Web.Http.Controllers
3 | @using System.Web.Http.Description
4 | @using System.Collections.ObjectModel
5 | @using WebAPI.Areas.HelpPage.Models
6 | @model Collection
7 |
8 | @{
9 | ViewBag.Title = "ASP.NET Web API Help Page";
10 |
11 | // Group APIs by controller
12 | ILookup apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor);
13 | }
14 |
15 |
16 |
17 |
18 |
@ViewBag.Title
19 |
20 |
21 |
22 |
23 |
24 |
25 |
Introduction
26 |
27 | Provide a general description of your APIs here.
28 |
29 |
30 |
31 |
32 | @foreach (var group in apiGroups)
33 | {
34 | @Html.DisplayFor(m => group, "ApiGroup")
35 | }
36 |
37 |
38 |
39 | @section Scripts {
40 |
41 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | @ViewBag.Title
7 | @RenderSection("scripts", required: false)
8 |
9 |
10 | @RenderBody()
11 |
12 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
43 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Areas/HelpPage/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages
3 | Layout = "~/Views/Shared/_Layout.cshtml";
4 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Content/Site.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 50px;
3 | padding-bottom: 20px;
4 | }
5 |
6 | /* Set padding to keep content from hitting the edges */
7 | .body-content {
8 | padding-left: 15px;
9 | padding-right: 15px;
10 | }
11 |
12 | /* Set width on the form input elements since they're 100% wide by default */
13 | input,
14 | select,
15 | textarea {
16 | max-width: 280px;
17 | }
18 |
19 | /* styles for validation helpers */
20 | .field-validation-error {
21 | color: #b94a48;
22 | }
23 |
24 | .field-validation-valid {
25 | display: none;
26 | }
27 |
28 | input.input-validation-error {
29 | border: 1px solid #b94a48;
30 | }
31 |
32 | input[type="checkbox"].input-validation-error {
33 | border: 0 none;
34 | }
35 |
36 | .validation-summary-errors {
37 | color: #b94a48;
38 | }
39 |
40 | .validation-summary-valid {
41 | display: none;
42 | }
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Controllers/HomeController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 |
7 | namespace WebAPI.Controllers
8 | {
9 | public class HomeController : Controller
10 | {
11 | public ActionResult Index()
12 | {
13 | ViewBag.Title = "Home Page";
14 |
15 | return View();
16 | }
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Controllers/ImageController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.IO;
4 | using System.Linq;
5 | using System.Net;
6 | using System.Net.Http;
7 | using System.Web;
8 | using System.Web.Http;
9 | using WebAPI.Models;
10 |
11 | namespace WebAPI.Controllers
12 | {
13 | public class ImageController : ApiController
14 | {
15 |
16 | [HttpPost]
17 | [Route("api/UploadImage")]
18 | public HttpResponseMessage UploadImage()
19 | {
20 | string imageName = null;
21 | var httpRequest = HttpContext.Current.Request;
22 | //Upload Image
23 | var postedFile = httpRequest.Files["Image"];
24 | //Create custom filename
25 | imageName = new String(Path.GetFileNameWithoutExtension(postedFile.FileName).Take(10).ToArray()).Replace(" ", "-");
26 | imageName = imageName + DateTime.Now.ToString("yymmssfff") + Path.GetExtension(postedFile.FileName);
27 | var filePath = HttpContext.Current.Server.MapPath("~/Image/" + imageName);
28 | postedFile.SaveAs(filePath);
29 |
30 | //Save to DB
31 | using (DBModel db = new DBModel())
32 | {
33 | Image image = new Image()
34 | {
35 | ImageCaption = httpRequest["ImageCaption"],
36 | ImageName = imageName
37 | };
38 | db.Images.Add(image);
39 | db.SaveChanges();
40 | }
41 | return Request.CreateResponse(HttpStatusCode.Created);
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Controllers/ValuesController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Net;
5 | using System.Net.Http;
6 | using System.Web.Http;
7 |
8 | namespace WebAPI.Controllers
9 | {
10 | public class ValuesController : ApiController
11 | {
12 | // GET api/values
13 | public IEnumerable Get()
14 | {
15 | return new string[] { "value1", "value2" };
16 | }
17 |
18 | // GET api/values/5
19 | public string Get(int id)
20 | {
21 | return "value";
22 | }
23 |
24 | // POST api/values
25 | public void Post([FromBody]string value)
26 | {
27 | }
28 |
29 | // PUT api/values/5
30 | public void Put(int id, [FromBody]string value)
31 | {
32 | }
33 |
34 | // DELETE api/values/5
35 | public void Delete(int id)
36 | {
37 | }
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="WebAPI.WebApiApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Http;
6 | using System.Web.Mvc;
7 | using System.Web.Optimization;
8 | using System.Web.Routing;
9 |
10 | namespace WebAPI
11 | {
12 | public class WebApiApplication : System.Web.HttpApplication
13 | {
14 | protected void Application_Start()
15 | {
16 | AreaRegistration.RegisterAllAreas();
17 | GlobalConfiguration.Configure(WebApiConfig.Register);
18 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
19 | RouteConfig.RegisterRoutes(RouteTable.Routes);
20 | BundleConfig.RegisterBundles(BundleTable.Bundles);
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Models/DBModels.Context.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebAPI.Models
11 | {
12 | using System;
13 | using System.Data.Entity;
14 | using System.Data.Entity.Infrastructure;
15 |
16 | public partial class DBModel : DbContext
17 | {
18 | public DBModel()
19 | : base("name=DBModel")
20 | {
21 | }
22 |
23 | protected override void OnModelCreating(DbModelBuilder modelBuilder)
24 | {
25 | throw new UnintentionalCodeFirstException();
26 | }
27 |
28 | public DbSet Images { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Models/DBModels.Designer.cs:
--------------------------------------------------------------------------------
1 | // T4 code generation is enabled for model 'F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\Models\DBModels.edmx'.
2 | // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
3 | // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
4 | // is open in the designer.
5 |
6 | // If no context and entity classes have been generated, it may be because you created an empty model but
7 | // have not yet chosen which version of Entity Framework to use. To generate a context class and entity
8 | // classes for your model, open the model in the designer, right-click on the designer surface, and
9 | // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation
10 | // Item...'.
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Models/DBModels.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Models/DBModels.edmx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Models/DBModels.edmx.diagram:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Models/Image.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated from a template.
4 | //
5 | // Manual changes to this file may cause unexpected behavior in your application.
6 | // Manual changes to this file will be overwritten if the code is regenerated.
7 | //
8 | //------------------------------------------------------------------------------
9 |
10 | namespace WebAPI.Models
11 | {
12 | using System;
13 | using System.Collections.Generic;
14 |
15 | public partial class Image
16 | {
17 | public int ImageID { get; set; }
18 | public string ImageCaption { get; set; }
19 | public string ImageName { get; set; }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | [assembly: AssemblyTitle("WebAPI")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("WebAPI")]
13 | [assembly: AssemblyCopyright("Copyright © 2018")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // Setting ComVisible to false makes the types in this assembly not visible
18 | // to COM components. If you need to access a type in this assembly from
19 | // COM, set the ComVisible attribute to true on that type.
20 | [assembly: ComVisible(false)]
21 |
22 | // The following GUID is for the ID of the typelib if this project is exposed to COM
23 | [assembly: Guid("f2d6f796-0644-4482-934f-de218a0a105f")]
24 |
25 | // Version information for an assembly consists of the following four values:
26 | //
27 | // Major Version
28 | // Minor Version
29 | // Build Number
30 | // Revision
31 | //
32 | // You can specify all the values or you can default the Revision and Build Numbers
33 | // by using the '*' as shown below:
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Scripts/_references.js:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/Scripts/_references.js
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Scripts/respond.min.js:
--------------------------------------------------------------------------------
1 | /* NUGET: BEGIN LICENSE TEXT
2 | *
3 | * Microsoft grants you the right to use these script files for the sole
4 | * purpose of either: (i) interacting through your browser with the Microsoft
5 | * website or online service, subject to the applicable licensing or use
6 | * terms; or (ii) using the files as included with a Microsoft product subject
7 | * to that product's license terms. Microsoft reserves all other rights to the
8 | * files not expressly granted by Microsoft, whether by implication, estoppel
9 | * or otherwise. Insofar as a script file is dual licensed under GPL,
10 | * Microsoft neither took the code under GPL nor distributes it thereunder but
11 | * under the terms set out in this paragraph. All notices and licenses
12 | * below are for informational purposes only.
13 | *
14 | * NUGET: END LICENSE TEXT */
15 | /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
16 | /*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
17 | window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);
18 |
19 | /*! Respond.js v1.2.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
20 | (function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
ASP.NET
3 |
ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.
4 |
Learn more »
5 |
6 |
7 |
8 |
Getting started
9 |
ASP.NET Web API is a framework that makes it easy to build HTTP services that reach
10 | a broad range of clients, including browsers and mobile devices. ASP.NET Web API
11 | is an ideal platform for building RESTful applications on the .NET Framework.
12 |
Learn more »
13 |
14 |
15 |
Get more libraries
16 |
NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.
17 |
Learn more »
18 |
19 |
20 |
Web Hosting
21 |
You can easily find a web hosting company that offers the right mix of features and price for your applications.
22 |
Learn more »
23 |
24 |
25 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = null;
3 | }
4 |
5 |
6 |
7 |
8 |
9 | Error
10 |
11 |
12 |
13 | Error.
14 | An error occurred while processing your request.
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Views/Shared/_Layout.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | @ViewBag.Title
7 | @Styles.Render("~/Content/css")
8 | @Scripts.Render("~/bundles/modernizr")
9 |
10 |
11 |
12 |
13 |
21 |
22 |
23 | @Html.ActionLink("Home", "Index", "Home", new { area = "" }, null)
24 | @Html.ActionLink("API", "Index", "Help", new { area = "" }, null)
25 |
26 |
27 |
28 |
29 |
30 | @RenderBody()
31 |
32 |
35 |
36 |
37 | @Scripts.Render("~/bundles/jquery")
38 | @Scripts.Render("~/bundles/bootstrap")
39 | @RenderSection("scripts", required: false)
40 |
41 |
42 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/WebAPI.csproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | True
5 | False
6 | True
7 |
8 | False
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 | CurrentPage
17 | True
18 | False
19 | False
20 | False
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | True
30 | True
31 |
32 |
33 |
34 |
35 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/Antlr3.Runtime.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/Antlr3.Runtime.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/Antlr3.Runtime.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/Antlr3.Runtime.pdb
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/EntityFramework.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/EntityFramework.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/Microsoft.Web.Infrastructure.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/Microsoft.Web.Infrastructure.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Cors.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Cors.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Helpers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Helpers.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Http.Cors.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Http.Cors.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Http.WebHost.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Http.WebHost.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Http.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Http.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Mvc.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Mvc.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Optimization.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Optimization.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.Razor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.Razor.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.WebPages.Deployment.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.WebPages.Deployment.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.WebPages.Razor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.WebPages.Razor.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/System.Web.WebPages.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/System.Web.WebPages.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/WebAPI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/WebAPI.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/WebAPI.dll.config:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/WebAPI.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/WebAPI.pdb
--------------------------------------------------------------------------------
/WebAPI/WebAPI/bin/WebGrease.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/bin/WebGrease.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/favicon.ico
--------------------------------------------------------------------------------
/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.Designer.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.Designer.cs.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.cs.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/TempPE/Models.DBModels.cs.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/WebAPI.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\WebAPI.dll.config
2 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\WebAPI.dll
3 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\WebAPI.pdb
4 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\Antlr3.Runtime.dll
5 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\Microsoft.Web.Infrastructure.dll
6 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\Newtonsoft.Json.dll
7 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Net.Http.Formatting.dll
8 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Helpers.dll
9 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Http.dll
10 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Http.WebHost.dll
11 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Mvc.dll
12 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Optimization.dll
13 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Razor.dll
14 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.WebPages.Deployment.dll
15 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.WebPages.dll
16 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.WebPages.Razor.dll
17 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\WebGrease.dll
18 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\Newtonsoft.Json.xml
19 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Net.Http.Formatting.xml
20 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Helpers.xml
21 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Http.xml
22 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Http.WebHost.xml
23 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Mvc.xml
24 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Optimization.xml
25 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Razor.xml
26 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.WebPages.xml
27 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.WebPages.Deployment.xml
28 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.WebPages.Razor.xml
29 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\Antlr3.Runtime.pdb
30 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\obj\Debug\WebAPI.csprojResolveAssemblyReference.cache
31 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\obj\Debug\WebAPI.dll
32 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\obj\Debug\WebAPI.pdb
33 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Cors.dll
34 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Http.Cors.dll
35 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\System.Web.Http.Cors.xml
36 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\EntityFramework.dll
37 | F:\profession\Youtube Channel\Dotnet Mob\Angular 5\Image Upload\Project\WebAPI\WebAPI\bin\EntityFramework.xml
38 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/WebAPI.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/WebAPI.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/WebAPI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/WebAPI.dll
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/WebAPI.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/WebAPI/obj/Debug/WebAPI.pdb
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/edmxResourcesToEmbed/Models/DBModels.csdl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/edmxResourcesToEmbed/Models/DBModels.msl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/obj/Debug/edmxResourcesToEmbed/Models/DBModels.ssdl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/WebAPI/WebAPI/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/WebAPI/packages/Antlr.3.4.1.9004/Antlr.3.4.1.9004.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Antlr.3.4.1.9004/Antlr.3.4.1.9004.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Antlr.3.4.1.9004/Antlr.3.4.1.9004.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Antlr
5 | 3.4.1.9004
6 | Terence Parr
7 | Terence Parr
8 | false
9 | ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.
10 | ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.
11 | en-US
12 |
13 |
--------------------------------------------------------------------------------
/WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Antlr.3.4.1.9004/lib/Antlr3.Runtime.pdb
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/Content/App.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/Content/Web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/EntityFramework.5.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/EntityFramework.5.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/EntityFramework.5.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | EntityFramework
5 | 5.0.0
6 | Microsoft
7 | Microsoft
8 | http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409
9 | http://go.microsoft.com/fwlink/?LinkId=253891&clcid=0x409
10 | true
11 | Entity Framework is Microsoft's recommended data access technology for new applications.
12 | Entity Framework is Microsoft's recommended data access technology for new applications.
13 | en-US
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/lib/net40/EntityFramework.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/lib/net40/EntityFramework.dll
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/lib/net45/EntityFramework.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/lib/net45/EntityFramework.dll
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PS3.psd1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PS3.psd1
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.Utility.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.Utility.dll
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.PowerShell.dll
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.psd1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/tools/EntityFramework.psd1
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/Redirect.VS11.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/Redirect.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
9 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/about_EntityFramework.help.txt:
--------------------------------------------------------------------------------
1 | TOPIC
2 | about_EntityFramework
3 |
4 | SHORT DESCRIPTION
5 | Provides information about Entity Framework commands.
6 |
7 | LONG DESCRIPTION
8 | This topic describes the Entity Framework commands. Entity Framework is
9 | Microsoft's recommended data access technology for new applications.
10 |
11 |
12 | The following Entity Framework cmdlets are included.
13 |
14 | Cmdlet Description
15 | ----------------- ---------------------------------------------------
16 | Enable-Migrations Enables Code First Migrations in a project.
17 |
18 | Add-Migration Scaffolds a migration script for any pending model
19 | changes.
20 |
21 | Update-Database Applies any pending migrations to the database.
22 |
23 | Get-Migrations Displays the migrations that have been applied to
24 | the target database.
25 |
26 | SEE ALSO
27 | Enable-Migrations
28 | Add-Migration
29 | Update-Database
30 | Get-Migrations
31 |
--------------------------------------------------------------------------------
/WebAPI/packages/EntityFramework.5.0.0/tools/migrate.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/EntityFramework.5.0.0/tools/migrate.exe
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/Microsoft.AspNet.Cors.5.2.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/Microsoft.AspNet.Cors.5.2.4.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/Microsoft.AspNet.Cors.5.2.4.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.Cors
5 | 5.2.4
6 | Microsoft ASP.NET Cross-Origin Support
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
10 | https://www.asp.net/web-api
11 | http://go.microsoft.com/fwlink/?LinkID=288859
12 | true
13 | This package contains the core components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET.
14 | This package contains the core components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET.
15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes.
16 | © Microsoft Corporation. All rights reserved.
17 | en-US
18 | Microsoft AspNet Cors Cross Origin
19 |
20 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/lib/net45/System.Web.Cors.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Cors.5.2.4/lib/net45/System.Web.Cors.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/Microsoft.AspNet.Mvc.5.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/Microsoft.AspNet.Mvc.5.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/Microsoft.AspNet.Mvc.5.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.Mvc
5 | 5.0.0
6 | Microsoft ASP.NET MVC
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm
10 | http://www.asp.net/mvc
11 | true
12 | This package contains the runtime assemblies for ASP.NET MVC. ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup.
13 | This package contains the runtime assemblies for ASP.NET MVC.
14 | © Microsoft Corporation. All rights reserved.
15 | en-US
16 | Microsoft AspNet Mvc AspNetMvc
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/lib/net45/System.Web.Mvc.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Mvc.5.0.0/lib/net45/System.Web.Mvc.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/Microsoft.AspNet.Razor.3.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/Microsoft.AspNet.Razor.3.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/Microsoft.AspNet.Razor.3.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.Razor
5 | 3.0.0
6 | Microsoft ASP.NET Razor
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm
10 | http://www.asp.net/web-pages
11 | true
12 | This package contains the runtime assemblies for ASP.NET Web Pages. ASP.NET Web Pages and the new Razor syntax provide a fast, terse, clean and lightweight way to combine server code with HTML to create dynamic web content.
13 | This package contains the runtime assemblies for ASP.NET Web Pages.
14 | © Microsoft Corporation. All rights reserved.
15 | en-US
16 | Microsoft AspNet WebPages AspNetWebPages Razor
17 |
18 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/lib/net45/System.Web.Razor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Razor.3.0.0/lib/net45/System.Web.Razor.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/Microsoft.AspNet.Web.Optimization.1.1.1.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/Microsoft.AspNet.Web.Optimization.1.1.1.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/Microsoft.AspNet.Web.Optimization.1.1.1.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.Web.Optimization
5 | 1.1.1
6 | Microsoft ASP.NET Web Optimization Framework
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_enu.htm
10 | true
11 | ASP.NET Optimization introduces a way to bundle and optimize CSS and JavaScript files.
12 | ASP.NET Optimization introduces a way to bundle and optimize CSS and JavaScript files.
13 | © Microsoft Corporation. All rights reserved.
14 | Microsoft AspNet optimization bundling minification
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/lib/net40/System.Web.Optimization.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.Web.Optimization.1.1.1/lib/net40/System.Web.Optimization.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.5.0.0/Microsoft.AspNet.WebApi.5.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.5.0.0/Microsoft.AspNet.WebApi.5.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.5.0.0/Microsoft.AspNet.WebApi.5.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.WebApi
5 | 5.0.0
6 | Microsoft ASP.NET Web API 2
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm
10 | http://www.asp.net/web-api
11 | false
12 | This package contains everything you need to host ASP.NET Web API on IIS. ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.
13 | This package contains everything you need to host ASP.NET Web API on IIS.
14 | Please go here to view the release notes: http://go.microsoft.com/fwlink/?LinkID=320753&clcid=0x409
15 | © Microsoft Corporation. All rights reserved.
16 | en-US
17 | Microsoft AspNet WebApi AspNetWebApi
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/Microsoft.AspNet.WebApi.Client.5.2.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/Microsoft.AspNet.WebApi.Client.5.2.4.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/Microsoft.AspNet.WebApi.Client.5.2.4.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.WebApi.Client
5 | 5.2.4
6 | Microsoft ASP.NET Web API 2.2 Client Libraries
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
10 | https://www.asp.net/web-api
11 | http://go.microsoft.com/fwlink/?LinkID=288859
12 | true
13 | This package adds support for formatting and content negotiation to System.Net.Http. It includes support for JSON, XML, and form URL encoded data.
14 | This package adds support for formatting and content negotiation to System.Net.Http.
15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes.
16 | © Microsoft Corporation. All rights reserved.
17 | en-US
18 | Microsoft AspNet WebApi AspNetWebApi HttpClient
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/net45/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/net45/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/netstandard2.0/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/netstandard2.0/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Client.5.2.4/lib/portable-wp8+netcore45+net45+wp81+wpa81/System.Net.Http.Formatting.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Content/web.config.transform:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Microsoft.AspNet.WebApi.Core.5.2.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Microsoft.AspNet.WebApi.Core.5.2.4.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/Microsoft.AspNet.WebApi.Core.5.2.4.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.WebApi.Core
5 | 5.2.4
6 | Microsoft ASP.NET Web API 2.2 Core Libraries
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
10 | https://www.asp.net/web-api
11 | http://go.microsoft.com/fwlink/?LinkID=288859
12 | true
13 | This package contains the core runtime assemblies for ASP.NET Web API. This package is used by hosts of the ASP.NET Web API runtime. To host a Web API in IIS use the Microsoft.AspNet.WebApi.WebHost package. To host a Web API in your own process use the Microsoft.AspNet.WebApi.SelfHost package.
14 | This package contains the core runtime assemblies for ASP.NET Web API.
15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes.
16 | © Microsoft Corporation. All rights reserved.
17 | en-US
18 | Microsoft AspNet WebApi AspNetWebApi
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/lib/net45/System.Web.Http.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Core.5.2.4/lib/net45/System.Web.Http.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/Microsoft.AspNet.WebApi.Cors.5.2.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/Microsoft.AspNet.WebApi.Cors.5.2.4.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/Microsoft.AspNet.WebApi.Cors.5.2.4.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.WebApi.Cors
5 | 5.2.4
6 | Microsoft ASP.NET Web API 2.2 Cross-Origin Support
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
10 | https://www.asp.net/web-api
11 | http://go.microsoft.com/fwlink/?LinkID=288859
12 | true
13 | This package contains the components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET Web API.
14 | This package contains the components to enable Cross-Origin Resource Sharing (CORS) in ASP.NET Web API.
15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes.
16 | © Microsoft Corporation. All rights reserved.
17 | en-US
18 | Microsoft AspNet WebApi AspNetWebApi Cors Cross Origin
19 |
20 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/lib/net45/System.Web.Http.Cors.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.Cors.5.2.4/lib/net45/System.Web.Http.Cors.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/Microsoft.AspNet.WebApi.HelpPage.5.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/Microsoft.AspNet.WebApi.HelpPage.5.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/Microsoft.AspNet.WebApi.HelpPage.5.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.WebApi.HelpPage
5 | 5.0.0
6 | Microsoft ASP.NET Web API Help Page
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm
10 | http://www.asp.net/web-api
11 | true
12 | The ASP.NET Web API Help Page automatically generates help page content for the web APIs on your site. Visitors to your help page can use this content to learn how to call your web APIs. Everything generated by the help page is fully customizable using ASP.NET MVC and Razor. ASP.NET Web API Help Page is a great addition to any ASP.NET Web API project.
13 | The ASP.NET Web API Help Page automatically generates help page content for the web APIs on your site.
14 | © Microsoft Corporation. All rights reserved.
15 | en-US
16 | Microsoft AspNet WebApi AspNetWebApi HelpPage
17 |
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/ApiDescriptionExtensions.cs.pp:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Text;
3 | using System.Web;
4 | using System.Web.Http.Description;
5 |
6 | namespace $rootnamespace$.Areas.HelpPage
7 | {
8 | public static class ApiDescriptionExtensions
9 | {
10 | ///
11 | /// Generates an URI-friendly ID for the . E.g. "Get-Values-id_name" instead of "GetValues/{id}?name={name}"
12 | ///
13 | /// The .
14 | /// The ID as a string.
15 | public static string GetFriendlyId(this ApiDescription description)
16 | {
17 | string path = description.RelativePath;
18 | string[] urlParts = path.Split('?');
19 | string localPath = urlParts[0];
20 | string queryKeyString = null;
21 | if (urlParts.Length > 1)
22 | {
23 | string query = urlParts[1];
24 | string[] queryKeys = HttpUtility.ParseQueryString(query).AllKeys;
25 | queryKeyString = String.Join("_", queryKeys);
26 | }
27 |
28 | StringBuilder friendlyPath = new StringBuilder();
29 | friendlyPath.AppendFormat("{0}-{1}",
30 | description.HttpMethod.Method,
31 | localPath.Replace("/", "-").Replace("{", String.Empty).Replace("}", String.Empty));
32 | if (queryKeyString != null)
33 | {
34 | friendlyPath.AppendFormat("_{0}", queryKeyString);
35 | }
36 | return friendlyPath.ToString();
37 | }
38 | }
39 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/App_Start/HelpPageConfig.cs.pp:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Net.Http.Headers;
4 | using System.Web;
5 | using System.Web.Http;
6 |
7 | namespace $rootnamespace$.Areas.HelpPage
8 | {
9 | ///
10 | /// Use this class to customize the Help Page.
11 | /// For example you can set a custom to supply the documentation
12 | /// or you can provide the samples for the requests/responses.
13 | ///
14 | public static class HelpPageConfig
15 | {
16 | public static void Register(HttpConfiguration config)
17 | {
18 | //// Uncomment the following to use the documentation from XML documentation file.
19 | //config.SetDocumentationProvider(new XmlDocumentationProvider(HttpContext.Current.Server.MapPath("~/App_Data/XmlDocument.xml")));
20 |
21 | //// Uncomment the following to use "sample string" as the sample for all actions that have string as the body parameter or return type.
22 | //// Also, the string arrays will be used for IEnumerable. The sample objects will be serialized into different media type
23 | //// formats by the available formatters.
24 | //config.SetSampleObjects(new Dictionary
25 | //{
26 | // {typeof(string), "sample string"},
27 | // {typeof(IEnumerable), new string[]{"sample 1", "sample 2"}}
28 | //});
29 |
30 | //// Uncomment the following to use "[0]=foo&[1]=bar" directly as the sample for all actions that support form URL encoded format
31 | //// and have IEnumerable as the body parameter or return type.
32 | //config.SetSampleForType("[0]=foo&[1]=bar", new MediaTypeHeaderValue("application/x-www-form-urlencoded"), typeof(IEnumerable));
33 |
34 | //// Uncomment the following to use "1234" directly as the request sample for media type "text/plain" on the controller named "Values"
35 | //// and action named "Put".
36 | //config.SetSampleRequest("1234", new MediaTypeHeaderValue("text/plain"), "Values", "Put");
37 |
38 | //// Uncomment the following to use the image on "../images/aspNetHome.png" directly as the response sample for media type "image/png"
39 | //// on the controller named "Values" and action named "Get" with parameter "id".
40 | //config.SetSampleResponse(new ImageSample("../images/aspNetHome.png"), new MediaTypeHeaderValue("image/png"), "Values", "Get", "id");
41 |
42 | //// Uncomment the following to correct the sample request when the action expects an HttpRequestMessage with ObjectContent.
43 | //// The sample will be generated as if the controller named "Values" and action named "Get" were having string as the body parameter.
44 | //config.SetActualRequestType(typeof(string), "Values", "Get");
45 |
46 | //// Uncomment the following to correct the sample response when the action returns an HttpResponseMessage with ObjectContent.
47 | //// The sample will be generated as if the controller named "Values" and action named "Post" were returning a string.
48 | //config.SetActualResponseType(typeof(string), "Values", "Post");
49 | }
50 | }
51 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Controllers/HelpController.cs.pp:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Web.Http;
3 | using System.Web.Mvc;
4 | using $rootnamespace$.Areas.HelpPage.Models;
5 |
6 | namespace $rootnamespace$.Areas.HelpPage.Controllers
7 | {
8 | ///
9 | /// The controller that will handle requests for the help page.
10 | ///
11 | public class HelpController : Controller
12 | {
13 | public HelpController()
14 | : this(GlobalConfiguration.Configuration)
15 | {
16 | }
17 |
18 | public HelpController(HttpConfiguration config)
19 | {
20 | Configuration = config;
21 | }
22 |
23 | public HttpConfiguration Configuration { get; private set; }
24 |
25 | public ActionResult Index()
26 | {
27 | ViewBag.DocumentationProvider = Configuration.Services.GetDocumentationProvider();
28 | return View(Configuration.Services.GetApiExplorer().ApiDescriptions);
29 | }
30 |
31 | public ActionResult Api(string apiId)
32 | {
33 | if (!String.IsNullOrEmpty(apiId))
34 | {
35 | HelpPageApiModel apiModel = Configuration.GetHelpPageApiModel(apiId);
36 | if (apiModel != null)
37 | {
38 | return View(apiModel);
39 | }
40 | }
41 |
42 | return View("Error");
43 | }
44 | }
45 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/HelpPage.css.pp:
--------------------------------------------------------------------------------
1 | pre.wrapped {
2 | white-space: -moz-pre-wrap;
3 | white-space: -pre-wrap;
4 | white-space: -o-pre-wrap;
5 | white-space: pre-wrap;
6 | }
7 |
8 | .warning-message-container {
9 | margin-top: 20px;
10 | padding: 0 10px;
11 | color: #525252;
12 | background: #EFDCA9;
13 | border: 1px solid #CCCCCC;
14 | }
15 |
16 | .help-page-table {
17 | width: 100%;
18 | border-collapse: collapse;
19 | text-align: left;
20 | margin: 0px 0px 20px 0px;
21 | border-top: 2px solid #D4D4D4;
22 | }
23 |
24 | .help-page-table th {
25 | text-align: left;
26 | font-weight: bold;
27 | border-bottom: 2px solid #D4D4D4;
28 | padding: 8px 6px 8px 6px;
29 | }
30 |
31 | .help-page-table td {
32 | border-bottom: 2px solid #D4D4D4;
33 | padding: 15px 8px 15px 8px;
34 | vertical-align: top;
35 | }
36 |
37 | .help-page-table pre, .help-page-table p {
38 | margin: 0px;
39 | padding: 0px;
40 | font-family: inherit;
41 | font-size: 100%;
42 | }
43 |
44 | .help-page-table tbody tr:hover td {
45 | background-color: #F3F3F3;
46 | }
47 |
48 | a:hover {
49 | background-color: transparent;
50 | }
51 |
52 | .sample-header {
53 | border: 2px solid #D4D4D4;
54 | background: #76B8DB;
55 | color: #FFFFFF;
56 | padding: 8px 15px;
57 | border-bottom: none;
58 | display: inline-block;
59 | margin: 10px 0px 0px 0px;
60 | }
61 |
62 | .sample-content {
63 | display: block;
64 | border-width: 0;
65 | padding: 15px 20px;
66 | background: #FFFFFF;
67 | border: 2px solid #D4D4D4;
68 | margin: 0px 0px 10px 0px;
69 | }
70 |
71 | .api-name {
72 | width: 40%;
73 | }
74 |
75 | .api-documentation {
76 | width: 60%;
77 | }
78 |
79 | .parameter-name {
80 | width: 20%;
81 | }
82 |
83 | .parameter-documentation {
84 | width: 50%;
85 | }
86 |
87 | .parameter-source {
88 | width: 30%;
89 | }
90 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/HelpPageAreaRegistration.cs.pp:
--------------------------------------------------------------------------------
1 | using System.Web.Http;
2 | using System.Web.Mvc;
3 |
4 | namespace $rootnamespace$.Areas.HelpPage
5 | {
6 | public class HelpPageAreaRegistration : AreaRegistration
7 | {
8 | public override string AreaName
9 | {
10 | get
11 | {
12 | return "HelpPage";
13 | }
14 | }
15 |
16 | public override void RegisterArea(AreaRegistrationContext context)
17 | {
18 | context.MapRoute(
19 | "HelpPage_Default",
20 | "Help/{action}/{apiId}",
21 | new { controller = "Help", action = "Index", apiId = UrlParameter.Optional });
22 |
23 | HelpPageConfig.Register(GlobalConfiguration.Configuration);
24 | }
25 | }
26 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Models/HelpPageApiModel.cs.pp:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Collections.ObjectModel;
3 | using System.Net.Http.Headers;
4 | using System.Web.Http.Description;
5 |
6 | namespace $rootnamespace$.Areas.HelpPage.Models
7 | {
8 | ///
9 | /// The model that represents an API displayed on the help page.
10 | ///
11 | public class HelpPageApiModel
12 | {
13 | ///
14 | /// Initializes a new instance of the class.
15 | ///
16 | public HelpPageApiModel()
17 | {
18 | SampleRequests = new Dictionary();
19 | SampleResponses = new Dictionary();
20 | ErrorMessages = new Collection();
21 | }
22 |
23 | ///
24 | /// Gets or sets the that describes the API.
25 | ///
26 | public ApiDescription ApiDescription { get; set; }
27 |
28 | ///
29 | /// Gets the sample requests associated with the API.
30 | ///
31 | public IDictionary SampleRequests { get; private set; }
32 |
33 | ///
34 | /// Gets the sample responses associated with the API.
35 | ///
36 | public IDictionary SampleResponses { get; private set; }
37 |
38 | ///
39 | /// Gets the error messages associated with this model.
40 | ///
41 | public Collection ErrorMessages { get; private set; }
42 | }
43 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/ImageSample.cs.pp:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace $rootnamespace$.Areas.HelpPage
4 | {
5 | ///
6 | /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class.
7 | ///
8 | public class ImageSample
9 | {
10 | ///
11 | /// Initializes a new instance of the class.
12 | ///
13 | /// The URL of an image.
14 | public ImageSample(string src)
15 | {
16 | if (src == null)
17 | {
18 | throw new ArgumentNullException("src");
19 | }
20 | Src = src;
21 | }
22 |
23 | public string Src { get; private set; }
24 |
25 | public override bool Equals(object obj)
26 | {
27 | ImageSample other = obj as ImageSample;
28 | return other != null && Src == other.Src;
29 | }
30 |
31 | public override int GetHashCode()
32 | {
33 | return Src.GetHashCode();
34 | }
35 |
36 | public override string ToString()
37 | {
38 | return Src;
39 | }
40 | }
41 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/InvalidSample.cs.pp:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace $rootnamespace$.Areas.HelpPage
4 | {
5 | ///
6 | /// This represents an invalid sample on the help page. There's a display template named InvalidSample associated with this class.
7 | ///
8 | public class InvalidSample
9 | {
10 | public InvalidSample(string errorMessage)
11 | {
12 | if (errorMessage == null)
13 | {
14 | throw new ArgumentNullException("errorMessage");
15 | }
16 | ErrorMessage = errorMessage;
17 | }
18 |
19 | public string ErrorMessage { get; private set; }
20 |
21 | public override bool Equals(object obj)
22 | {
23 | InvalidSample other = obj as InvalidSample;
24 | return other != null && ErrorMessage == other.ErrorMessage;
25 | }
26 |
27 | public override int GetHashCode()
28 | {
29 | return ErrorMessage.GetHashCode();
30 | }
31 |
32 | public override string ToString()
33 | {
34 | return ErrorMessage;
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/SampleDirection.cs.pp:
--------------------------------------------------------------------------------
1 | namespace $rootnamespace$.Areas.HelpPage
2 | {
3 | ///
4 | /// Indicates whether the sample is used for request or response
5 | ///
6 | public enum SampleDirection
7 | {
8 | Request = 0,
9 | Response
10 | }
11 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/SampleGeneration/TextSample.cs.pp:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace $rootnamespace$.Areas.HelpPage
4 | {
5 | ///
6 | /// This represents a preformatted text sample on the help page. There's a display template named TextSample associated with this class.
7 | ///
8 | public class TextSample
9 | {
10 | public TextSample(string text)
11 | {
12 | if (text == null)
13 | {
14 | throw new ArgumentNullException("text");
15 | }
16 | Text = text;
17 | }
18 |
19 | public string Text { get; private set; }
20 |
21 | public override bool Equals(object obj)
22 | {
23 | TextSample other = obj as TextSample;
24 | return other != null && Text == other.Text;
25 | }
26 |
27 | public override int GetHashCode()
28 | {
29 | return Text.GetHashCode();
30 | }
31 |
32 | public override string ToString()
33 | {
34 | return Text;
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/Api.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using $rootnamespace$.Areas.HelpPage.Models
3 | @model HelpPageApiModel
4 |
5 | @{
6 | var description = Model.ApiDescription;
7 | ViewBag.Title = description.HttpMethod.Method + " " + description.RelativePath;
8 | }
9 |
10 |
11 |
12 |
13 |
14 | @Html.ActionLink("Help Page Home", "Index")
15 |
16 |
17 |
18 |
19 | @Html.DisplayFor(m => Model)
20 |
21 |
22 |
23 | @section Scripts {
24 |
25 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/ApiGroup.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using System.Web.Http.Controllers
3 | @using System.Web.Http.Description
4 | @using $rootnamespace$.Areas.HelpPage
5 | @using $rootnamespace$.Areas.HelpPage.Models
6 | @model IGrouping
7 |
8 | @{
9 | var controllerDocumentation = ViewBag.DocumentationProvider != null ?
10 | ViewBag.DocumentationProvider.GetDocumentation(Model.Key) :
11 | null;
12 | }
13 |
14 | @Model.Key.ControllerName
15 | @if (!String.IsNullOrEmpty(controllerDocumentation))
16 | {
17 | @controllerDocumentation
18 | }
19 |
20 |
21 | API Description
22 |
23 |
24 | @foreach (var api in Model)
25 | {
26 |
27 | @api.HttpMethod.Method @api.RelativePath
28 |
29 | @if (api.Documentation != null)
30 | {
31 | @api.Documentation
32 | }
33 | else
34 | {
35 | No documentation available.
36 | }
37 |
38 |
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/HelpPageApiModel.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using $rootnamespace$.Areas.HelpPage.Models
3 | @model HelpPageApiModel
4 |
5 | @{
6 | var description = Model.ApiDescription;
7 | bool hasParameters = description.ParameterDescriptions.Count > 0;
8 | bool hasRequestSamples = Model.SampleRequests.Count > 0;
9 | bool hasResponseSamples = Model.SampleResponses.Count > 0;
10 | }
11 | @description.HttpMethod.Method @description.RelativePath
12 |
13 | @if (description.Documentation != null)
14 | {
15 |
@description.Documentation
16 | }
17 | else
18 | {
19 |
No documentation available.
20 | }
21 |
22 | @if (hasParameters || hasRequestSamples)
23 | {
24 |
Request Information
25 | if (hasParameters)
26 | {
27 |
Parameters
28 | @Html.DisplayFor(apiModel => apiModel.ApiDescription.ParameterDescriptions, "Parameters")
29 | }
30 | if (hasRequestSamples)
31 | {
32 |
Request body formats
33 | @Html.DisplayFor(apiModel => apiModel.SampleRequests, "Samples")
34 | }
35 | }
36 |
37 | @if (hasResponseSamples)
38 | {
39 |
Response Information
40 | if (description.ResponseDescription.Documentation != null)
41 | {
42 |
@description.ResponseDescription.Documentation
43 | }
44 | else
45 | {
46 |
No documentation available.
47 | }
48 |
Response body formats
49 | @Html.DisplayFor(apiModel => apiModel.SampleResponses, "Samples")
50 | }
51 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/ImageSample.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using $rootnamespace$.Areas.HelpPage
2 | @model ImageSample
3 |
4 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/InvalidSample.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using $rootnamespace$.Areas.HelpPage
2 | @model InvalidSample
3 |
4 | @if (HttpContext.Current.IsDebuggingEnabled)
5 | {
6 |
7 |
@Model.ErrorMessage
8 |
9 | }
10 | else
11 | {
12 | Sample not available.
13 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/Parameters.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using System.Collections.ObjectModel
2 | @using System.Web.Http.Description
3 | @using System.Threading
4 | @model Collection
5 |
6 |
7 |
8 | Name Description Additional information
9 |
10 |
11 | @foreach (ApiParameterDescription parameter in Model)
12 | {
13 | string parameterDocumentation = parameter.Documentation != null ?
14 | parameter.Documentation :
15 | "No documentation available.";
16 |
17 | // Don't show CancellationToken because it's a special parameter
18 | if (parameter.ParameterDescriptor == null ||
19 | (parameter.ParameterDescriptor != null &&
20 | !typeof(CancellationToken).IsAssignableFrom(parameter.ParameterDescriptor.ParameterType)))
21 | {
22 |
23 | @parameter.Name
24 | @parameterDocumentation
25 |
26 | @switch (parameter.Source)
27 | {
28 | case ApiParameterSource.FromBody:
29 | Define this parameter in the request body .
30 | break;
31 | case ApiParameterSource.FromUri:
32 | Define this parameter in the request URI .
33 | break;
34 | case ApiParameterSource.Unknown:
35 | default:
36 | None.
37 | break;
38 | }
39 |
40 |
41 | }
42 | }
43 |
44 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/Samples.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using System.Net.Http.Headers
2 | @model Dictionary
3 |
4 | @{
5 | // Group the samples into a single tab if they are the same.
6 | Dictionary samples = Model.GroupBy(pair => pair.Value).ToDictionary(
7 | pair => String.Join(", ", pair.Select(m => m.Key.ToString()).ToArray()),
8 | pair => pair.Key);
9 | var mediaTypes = samples.Keys;
10 | }
11 |
12 | @foreach (var mediaType in mediaTypes)
13 | {
14 |
15 |
16 |
Sample:
17 | @{
18 | var sample = samples[mediaType];
19 | if (sample == null)
20 | {
21 |
Sample not available.
22 | }
23 | else
24 | {
25 | @Html.DisplayFor(s => sample);
26 | }
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/DisplayTemplates/TextSample.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using $rootnamespace$.Areas.HelpPage
2 | @model TextSample
3 |
4 |
5 | @Model.Text
6 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Help/Index.cshtml.pp:
--------------------------------------------------------------------------------
1 | @using System.Web.Http
2 | @using System.Web.Http.Controllers
3 | @using System.Web.Http.Description
4 | @using System.Collections.ObjectModel
5 | @using $rootnamespace$.Areas.HelpPage.Models
6 | @model Collection
7 |
8 | @{
9 | ViewBag.Title = "ASP.NET Web API Help Page";
10 |
11 | // Group APIs by controller
12 | ILookup apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor);
13 | }
14 |
15 |
16 |
17 |
18 |
@ViewBag.Title
19 |
20 |
21 |
22 |
23 |
24 |
25 |
Introduction
26 |
27 | Provide a general description of your APIs here.
28 |
29 |
30 |
31 |
32 | @foreach (var group in apiGroups)
33 | {
34 | @Html.DisplayFor(m => group, "ApiGroup")
35 | }
36 |
37 |
38 |
39 | @section Scripts {
40 |
41 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Shared/_Layout.cshtml.pp:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | @ViewBag.Title
7 | @RenderSection("scripts", required: false)
8 |
9 |
10 | @RenderBody()
11 |
12 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
43 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.HelpPage.5.0.0/content/Areas/HelpPage/Views/_ViewStart.cshtml.pp:
--------------------------------------------------------------------------------
1 | @{
2 | // Change the Layout path below to blend the look and feel of the help page with your existing web pages.
3 | Layout = "~/Areas/HelpPage/Views/Shared/_Layout.cshtml";
4 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/Microsoft.AspNet.WebApi.WebHost.5.2.4.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/Microsoft.AspNet.WebApi.WebHost.5.2.4.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/Microsoft.AspNet.WebApi.WebHost.5.2.4.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.WebApi.WebHost
5 | 5.2.4
6 | Microsoft ASP.NET Web API 2.2 Web Host
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/net_library_eula_ENU.htm
10 | https://www.asp.net/web-api
11 | http://go.microsoft.com/fwlink/?LinkID=288859
12 | true
13 | This package contains everything you need to host ASP.NET Web API on IIS. ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.
14 | This package contains everything you need to host ASP.NET Web API on IIS.
15 | Please visit http://go.microsoft.com/fwlink/?LinkID=403010 to view the release notes.
16 | © Microsoft Corporation. All rights reserved.
17 | en-US
18 | Microsoft AspNet WebApi AspNetWebApi WebHost
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/lib/net45/System.Web.Http.WebHost.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebApi.WebHost.5.2.4/lib/net45/System.Web.Http.WebHost.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/Microsoft.AspNet.WebPages.3.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/Microsoft.AspNet.WebPages.3.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/Microsoft.AspNet.WebPages.3.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.AspNet.WebPages
5 | 3.0.0
6 | Microsoft ASP.NET Web Pages
7 | Microsoft
8 | Microsoft
9 | http://www.microsoft.com/web/webpi/eula/aspnetcomponent_rtw_ENU.htm
10 | http://www.asp.net/web-pages
11 | true
12 | This package contains core runtime assemblies shared between ASP.NET MVC and ASP.NET Web Pages.
13 | This package contains core runtime assemblies shared between ASP.NET MVC and ASP.NET Web Pages.
14 | © Microsoft Corporation. All rights reserved.
15 | en-US
16 | Microsoft AspNet WebPages AspNetWebPages
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.Helpers.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.Helpers.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Deployment.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Deployment.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Razor.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.Razor.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.AspNet.WebPages.3.0.0/lib/net45/System.Web.WebPages.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/Microsoft.Web.Infrastructure.1.0.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Microsoft.Web.Infrastructure
5 | 1.0.0.0
6 | Microsoft.Web.Infrastructure
7 | Microsoft
8 | Microsoft
9 | http://go.microsoft.com/fwlink/?LinkID=214339
10 | http://www.asp.net
11 | false
12 | This package contains the Microsoft.Web.Infrastructure assembly that lets you dynamically register HTTP modules at run time.
13 | en-US
14 |
15 |
--------------------------------------------------------------------------------
/WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Microsoft.Web.Infrastructure.1.0.0.0/lib/net40/Microsoft.Web.Infrastructure.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Modernizr.2.6.2/Modernizr.2.6.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Modernizr.2.6.2/Modernizr.2.6.2.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Modernizr.2.6.2/Modernizr.2.6.2.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Modernizr
5 | 2.6.2
6 | Modernizr
7 | Faruk Ateş,Paul Irish,Alex Sexton
8 | Faruk Ateş,Paul Irish,Alex Sexton
9 | http://www.modernizr.com/license/
10 | http://www.modernizr.com/
11 | http://www.modernizr.com/i/logo.png
12 | false
13 | Modernizr adds classes to the <html> element which allow you to target specific browser functionality in your stylesheet. You don't actually need to write any Javascript to use it.
14 | Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.
15 | NOTE: This package is maintained on behalf of the library owners by the NuGet Community Packages project at http://nugetpackages.codeplex.com/
16 | Modernizr is a small and simple JavaScript library that helps you take advantage of emerging web technologies (CSS3, HTML 5) while still maintaining a fine level of control over older browsers that may not yet support these new technologies.
17 | en-US
18 | JavaScript HTML HTML5 CSS CSS3 SVG
19 |
20 |
--------------------------------------------------------------------------------
/WebAPI/packages/Modernizr.2.6.2/Tools/common.ps1:
--------------------------------------------------------------------------------
1 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
2 | try {
3 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
4 | }
5 | catch {
6 | # _references.js file not found
7 | return
8 | }
9 |
10 | if ($referencesFileProjectItem -eq $null) {
11 | # _references.js file not found
12 | return
13 | }
14 |
15 | $referencesFilePath = $referencesFileProjectItem.FileNames(1)
16 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
17 |
18 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 0) {
19 | # File has no existing matching reference line
20 | # Add the full reference line to the beginning of the file
21 | "/// " | Add-Content $referencesTempFilePath -Encoding UTF8
22 | Get-Content $referencesFilePath | Add-Content $referencesTempFilePath
23 | }
24 | else {
25 | # Loop through file and replace old file name with new file name
26 | Get-Content $referencesFilePath | ForEach-Object { $_ -replace $fileNamePattern, $newFileName } > $referencesTempFilePath
27 | }
28 |
29 | # Copy over the new _references.js file
30 | Copy-Item $referencesTempFilePath $referencesFilePath -Force
31 | Remove-Item $referencesTempFilePath -Force
32 | }
33 |
34 | function Remove-Reference($scriptsFolderProjectItem, $fileNamePattern) {
35 | try {
36 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
37 | }
38 | catch {
39 | # _references.js file not found
40 | return
41 | }
42 |
43 | if ($referencesFileProjectItem -eq $null) {
44 | return
45 | }
46 |
47 | $referencesFilePath = $referencesFileProjectItem.FileNames(1)
48 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
49 |
50 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 1) {
51 | # Delete the line referencing the file
52 | Get-Content $referencesFilePath | ForEach-Object { if (-not ($_ -match $fileNamePattern)) { $_ } } > $referencesTempFilePath
53 |
54 | # Copy over the new _references.js file
55 | Copy-Item $referencesTempFilePath $referencesFilePath -Force
56 | Remove-Item $referencesTempFilePath -Force
57 | }
58 | }
59 |
60 | # Extract the version number from the file in the package's content\scripts folder
61 | $packageScriptsFolder = Join-Path $installPath Content\Scripts
62 | $modernizrFileName = Join-Path $packageScriptsFolder "modernizr-*.js" | Get-ChildItem -Exclude "*.min.js","*-vsdoc.js" | Split-Path -Leaf
63 | $modernizrFileNameRegEx = "modernizr-((?:\d+\.)?(?:\d+\.)?(?:\d+\.)?(?:\d+)).js"
64 | $modernizrFileName -match $modernizrFileNameRegEx
65 | $ver = $matches[1]
66 |
67 | # Get the project item for the scripts folder
68 | try {
69 | $scriptsFolderProjectItem = $project.ProjectItems.Item("Scripts")
70 | $projectScriptsFolderPath = $scriptsFolderProjectItem.FileNames(1)
71 | }
72 | catch {
73 | # No Scripts folder
74 | Write-Host "No scripts folder found"
75 | }
--------------------------------------------------------------------------------
/WebAPI/packages/Modernizr.2.6.2/Tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | . (Join-Path $toolsPath common.ps1)
4 |
5 | if ($scriptsFolderProjectItem -eq $null) {
6 | # No Scripts folder
7 | Write-Host "No Scripts folder found"
8 | exit
9 | }
10 |
11 | # Update the _references.js file
12 | AddOrUpdate-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx $modernizrFileName
--------------------------------------------------------------------------------
/WebAPI/packages/Modernizr.2.6.2/Tools/uninstall.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | . (Join-Path $toolsPath common.ps1)
4 |
5 | # Update the _references.js file
6 | Remove-Reference $scriptsFolderProjectItem $modernizrFileNameRegEx
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/Newtonsoft.Json.6.0.8.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Newtonsoft.Json
5 | 6.0.8
6 | Json.NET
7 | James Newton-King
8 | James Newton-King
9 | https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md
10 | http://www.newtonsoft.com/json
11 | http://www.newtonsoft.com/content/images/nugeticon.png
12 | false
13 | Json.NET is a popular high-performance JSON framework for .NET
14 |
15 | en-US
16 | json
17 |
18 |
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net20/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net35/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net40/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/net45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/netcore45/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/netcore45/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net40+sl5+wp80+win8+wpa81/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net45+wp80+win8+wpa81+aspnetcore50/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Newtonsoft.Json.6.0.8/lib/portable-net45+wp80+win8+wpa81+aspnetcore50/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/WebAPI/packages/Newtonsoft.Json.6.0.8/tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | # open json.net splash page on package install
4 | # don't open if json.net is installed as a dependency
5 |
6 | try
7 | {
8 | $url = "http://james.newtonking.com/json/install?version=" + $package.Version
9 | $dte2 = Get-Interface $dte ([EnvDTE80.DTE2])
10 |
11 | if ($dte2.ActiveWindow.Caption -eq "Package Manager Console")
12 | {
13 | # user is installing from VS NuGet console
14 | # get reference to the window, the console host and the input history
15 | # show webpage if "install-package newtonsoft.json" was last input
16 |
17 | $consoleWindow = $(Get-VSComponentModel).GetService([NuGetConsole.IPowerConsoleWindow])
18 |
19 | $props = $consoleWindow.GetType().GetProperties([System.Reflection.BindingFlags]::Instance -bor `
20 | [System.Reflection.BindingFlags]::NonPublic)
21 |
22 | $prop = $props | ? { $_.Name -eq "ActiveHostInfo" } | select -first 1
23 | if ($prop -eq $null) { return }
24 |
25 | $hostInfo = $prop.GetValue($consoleWindow)
26 | if ($hostInfo -eq $null) { return }
27 |
28 | $history = $hostInfo.WpfConsole.InputHistory.History
29 |
30 | $lastCommand = $history | select -last 1
31 |
32 | if ($lastCommand)
33 | {
34 | $lastCommand = $lastCommand.Trim().ToLower()
35 | if ($lastCommand.StartsWith("install-package") -and $lastCommand.Contains("newtonsoft.json"))
36 | {
37 | $dte2.ItemOperations.Navigate($url) | Out-Null
38 | }
39 | }
40 | }
41 | else
42 | {
43 | # user is installing from VS NuGet dialog
44 | # get reference to the window, then smart output console provider
45 | # show webpage if messages in buffered console contains "installing...newtonsoft.json" in last operation
46 |
47 | $instanceField = [NuGet.Dialog.PackageManagerWindow].GetField("CurrentInstance", [System.Reflection.BindingFlags]::Static -bor `
48 | [System.Reflection.BindingFlags]::NonPublic)
49 |
50 | $consoleField = [NuGet.Dialog.PackageManagerWindow].GetField("_smartOutputConsoleProvider", [System.Reflection.BindingFlags]::Instance -bor `
51 | [System.Reflection.BindingFlags]::NonPublic)
52 |
53 | if ($instanceField -eq $null -or $consoleField -eq $null) { return }
54 |
55 | $instance = $instanceField.GetValue($null)
56 |
57 | if ($instance -eq $null) { return }
58 |
59 | $consoleProvider = $consoleField.GetValue($instance)
60 | if ($consoleProvider -eq $null) { return }
61 |
62 | $console = $consoleProvider.CreateOutputConsole($false)
63 |
64 | $messagesField = $console.GetType().GetField("_messages", [System.Reflection.BindingFlags]::Instance -bor `
65 | [System.Reflection.BindingFlags]::NonPublic)
66 | if ($messagesField -eq $null) { return }
67 |
68 | $messages = $messagesField.GetValue($console)
69 | if ($messages -eq $null) { return }
70 |
71 | $operations = $messages -split "=============================="
72 |
73 | $lastOperation = $operations | select -last 1
74 |
75 | if ($lastOperation)
76 | {
77 | $lastOperation = $lastOperation.ToLower()
78 |
79 | $lines = $lastOperation -split "`r`n"
80 |
81 | $installMatch = $lines | ? { $_.StartsWith("------- installing...newtonsoft.json ") } | select -first 1
82 |
83 | if ($installMatch)
84 | {
85 | $dte2.ItemOperations.Navigate($url) | Out-Null
86 | }
87 | }
88 | }
89 | }
90 | catch
91 | {
92 | try
93 | {
94 | $pmPane = $dte2.ToolWindows.OutputWindow.OutputWindowPanes.Item("Package Manager")
95 |
96 | $selection = $pmPane.TextDocument.Selection
97 | $selection.StartOfDocument($false)
98 | $selection.EndOfDocument($true)
99 |
100 | if ($selection.Text.StartsWith("Installing 'Newtonsoft.Json "))
101 | {
102 | $dte2.ItemOperations.Navigate($url) | Out-Null
103 | }
104 | }
105 | catch
106 | {
107 | # stop potential errors from bubbling up
108 | # worst case the splash page won't open
109 | }
110 | }
111 |
112 | # still yolo
--------------------------------------------------------------------------------
/WebAPI/packages/Respond.1.2.0/Respond.1.2.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/Respond.1.2.0/Respond.1.2.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/Respond.1.2.0/Respond.1.2.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Respond
5 | 1.2.0
6 | Respond JS
7 | Scott Jehl
8 | Scott Jehl,scottjehl.com
9 | https://github.com/scottjehl/Respond
10 | https://github.com/scottjehl/Respond
11 | true
12 | The goal of this script is to provide a fast and lightweight (3kb minified / 1kb gzipped) script to enable responsive web designs in browsers that don't support CSS3 Media Queries - in particular, Internet Explorer 8 and under. It's written in such a way that it will probably patch support for other non-supporting browsers as well (more information on that soon).
13 | A fast & lightweight polyfill for min/max-width CSS3 Media Queries (for IE 6-8, and more)
14 | Merge pull request #104 from scottjehl/cross-domain Resolves Issue #59: Cross domain CSS files with ? in URL won't load
15 | 2011: Scott Jehl, scottjehl.com
16 | Respond, Media Queries
17 |
18 |
--------------------------------------------------------------------------------
/WebAPI/packages/WebGrease.1.5.2/WebGrease.1.5.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/WebGrease.1.5.2/WebGrease.1.5.2.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/WebGrease.1.5.2/WebGrease.1.5.2.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WebGrease
5 | 1.5.2
6 | webgrease@microsoft.com
7 | Microsoft
8 | http://www.microsoft.com/web/webpi/eula/msn_webgrease_eula.htm
9 | true
10 | Web Grease is a suite of tools for optimizing javascript, css files and images.
11 | en-US
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/WebAPI/packages/WebGrease.1.5.2/lib/WebGrease.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/WebGrease.1.5.2/lib/WebGrease.dll
--------------------------------------------------------------------------------
/WebAPI/packages/WebGrease.1.5.2/tools/WG.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/WebGrease.1.5.2/tools/WG.exe
--------------------------------------------------------------------------------
/WebAPI/packages/bootstrap.3.0.0/bootstrap.3.0.0.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/bootstrap.3.0.0/bootstrap.3.0.0.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/bootstrap.3.0.0/bootstrap.3.0.0.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | bootstrap
5 | 3.0.0
6 | Mark Otto,Jacob Thornton
7 | outercurve
8 | https://github.com/twbs/bootstrap/blob/master/LICENSE
9 | https://github.com/twbs/bootstrap
10 | https://github.com/twbs/bootstrap/blob/master/assets/ico/apple-touch-icon-72-precomposed.png
11 | false
12 | Sleek, intuitive, and powerful front-end framework for faster and easier web development.
13 |
14 | Copyright 2012
15 | Twitter bootstrap html5 css3
16 |
17 |
--------------------------------------------------------------------------------
/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/bootstrap.3.0.0/content/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/WebAPI/packages/jQuery.1.10.2/Tools/common.ps1:
--------------------------------------------------------------------------------
1 | function Get-Checksum($file) {
2 | $cryptoProvider = New-Object "System.Security.Cryptography.MD5CryptoServiceProvider"
3 |
4 | $fileInfo = Get-Item $file
5 | trap { ;
6 | continue } $stream = $fileInfo.OpenRead()
7 | if ($? -eq $false) {
8 | # Couldn't open file for reading
9 | return $null
10 | }
11 |
12 | $bytes = $cryptoProvider.ComputeHash($stream)
13 | $checksum = ''
14 | foreach ($byte in $bytes) {
15 | $checksum += $byte.ToString('x2')
16 | }
17 |
18 | $stream.Close() | Out-Null
19 |
20 | return $checksum
21 | }
22 |
23 | function AddOrUpdate-Reference($scriptsFolderProjectItem, $fileNamePattern, $newFileName) {
24 | try {
25 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
26 | }
27 | catch {
28 | # _references.js file not found
29 | return
30 | }
31 |
32 | if ($referencesFileProjectItem -eq $null) {
33 | # _references.js file not found
34 | return
35 | }
36 |
37 | $referencesFilePath = $referencesFileProjectItem.FileNames(1)
38 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
39 |
40 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 0) {
41 | # File has no existing matching reference line
42 | # Add the full reference line to the beginning of the file
43 | "/// " | Add-Content $referencesTempFilePath -Encoding UTF8
44 | Get-Content $referencesFilePath | Add-Content $referencesTempFilePath
45 | }
46 | else {
47 | # Loop through file and replace old file name with new file name
48 | Get-Content $referencesFilePath | ForEach-Object { $_ -replace $fileNamePattern, $newFileName } > $referencesTempFilePath
49 | }
50 |
51 | # Copy over the new _references.js file
52 | Copy-Item $referencesTempFilePath $referencesFilePath -Force
53 | Remove-Item $referencesTempFilePath -Force
54 | }
55 |
56 | function Remove-Reference($scriptsFolderProjectItem, $fileNamePattern) {
57 | try {
58 | $referencesFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("_references.js")
59 | }
60 | catch {
61 | # _references.js file not found
62 | return
63 | }
64 |
65 | if ($referencesFileProjectItem -eq $null) {
66 | return
67 | }
68 |
69 | $referencesFilePath = $referencesFileProjectItem.FileNames(1)
70 | $referencesTempFilePath = Join-Path $env:TEMP "_references.tmp.js"
71 |
72 | if ((Select-String $referencesFilePath -pattern $fileNamePattern).Length -eq 1) {
73 | # Delete the line referencing the file
74 | Get-Content $referencesFilePath | ForEach-Object { if (-not ($_ -match $fileNamePattern)) { $_ } } > $referencesTempFilePath
75 |
76 | # Copy over the new _references.js file
77 | Copy-Item $referencesTempFilePath $referencesFilePath -Force
78 | Remove-Item $referencesTempFilePath -Force
79 | }
80 | }
81 |
82 | function Delete-ProjectItem($item) {
83 | $itemDeleted = $false
84 | for ($1=1; $i -le 5; $i++) {
85 | try {
86 | $item.Delete()
87 | $itemDeleted = $true
88 | break
89 | }
90 | catch {
91 | # Try again in 200ms
92 | [System.Threading.Thread]::Sleep(200)
93 | }
94 | }
95 | if ($itemDeleted -eq $false) {
96 | throw "Unable to delete project item after five attempts."
97 | }
98 | }
99 |
100 | # Extract the version number from the jquery file in the package's content\scripts folder
101 | $packageScriptsFolder = Join-Path $installPath Content\Scripts
102 | $jqueryFileName = Join-Path $packageScriptsFolder "jquery-*.js" | Get-ChildItem -Exclude "*.min.js","*-vsdoc.js" | Split-Path -Leaf
103 | $jqueryFileNameRegEx = "jquery-((?:\d+\.)?(?:\d+\.)?(?:\d+\.)?(?:\d+)).js"
104 | $jqueryFileName -match $jqueryFileNameRegEx
105 | $ver = $matches[1]
106 |
107 | $intelliSenseFileName = "jquery-$ver.intellisense.js"
108 |
109 | # Get the project item for the scripts folder
110 | try {
111 | $scriptsFolderProjectItem = $project.ProjectItems.Item("Scripts")
112 | $projectScriptsFolderPath = $scriptsFolderProjectItem.FileNames(1)
113 | }
114 | catch {
115 | # No Scripts folder
116 | Write-Host "No scripts folder found"
117 | }
--------------------------------------------------------------------------------
/WebAPI/packages/jQuery.1.10.2/Tools/install.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | . (Join-Path $toolsPath common.ps1)
4 |
5 | # VS 11 and above supports the new intellisense JS files
6 | $vsVersion = [System.Version]::Parse($dte.Version)
7 | $supportsJsIntelliSenseFile = $vsVersion.Major -ge 11
8 |
9 | if (-not $supportsJsIntelliSenseFile) {
10 | $displayVersion = $vsVersion.Major
11 | Write-Host "IntelliSense JS files are not supported by your version of Visual Studio: $displayVersion"
12 | exit
13 | }
14 |
15 | if ($scriptsFolderProjectItem -eq $null) {
16 | # No Scripts folder
17 | Write-Host "No Scripts folder found"
18 | exit
19 | }
20 |
21 | # Delete the vsdoc file from the project
22 | try {
23 | $vsDocProjectItem = $scriptsFolderProjectItem.ProjectItems.Item("jquery-$ver-vsdoc.js")
24 | Delete-ProjectItem $vsDocProjectItem
25 | }
26 | catch {
27 | Write-Host "Error deleting vsdoc file: " + $_.Exception -ForegroundColor Red
28 | exit
29 | }
30 |
31 | # Copy the intellisense file to the project from the tools folder
32 | $intelliSenseFileSourcePath = Join-Path $toolsPath $intelliSenseFileName
33 | try {
34 | $scriptsFolderProjectItem.ProjectItems.AddFromFileCopy($intelliSenseFileSourcePath)
35 | }
36 | catch {
37 | # This will throw if the file already exists, so we need to catch here
38 | }
39 |
40 | # Update the _references.js file
41 | AddOrUpdate-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx $jqueryFileName
--------------------------------------------------------------------------------
/WebAPI/packages/jQuery.1.10.2/Tools/uninstall.ps1:
--------------------------------------------------------------------------------
1 | param($installPath, $toolsPath, $package, $project)
2 |
3 | . (Join-Path $toolsPath common.ps1)
4 |
5 | # Determine the file paths
6 | $projectIntelliSenseFilePath = Join-Path $projectScriptsFolderPath $intelliSenseFileName
7 | $origIntelliSenseFilePath = Join-Path $toolsPath $intelliSenseFileName
8 |
9 | if (Test-Path $projectIntelliSenseFilePath) {
10 | if ((Get-Checksum $projectIntelliSenseFilePath) -eq (Get-Checksum $origIntelliSenseFilePath)) {
11 | # The intellisense file in the project matches the file in the tools folder, delete it
12 |
13 | if ($scriptsFolderProjectItem -eq $null) {
14 | # No Scripts folder
15 | exit
16 | }
17 |
18 | try {
19 | # Get the project item for the intellisense file
20 | $intelliSenseFileProjectItem = $scriptsFolderProjectItem.ProjectItems.Item($intelliSenseFileName)
21 | }
22 | catch {
23 | # The item wasn't found
24 | exit
25 | }
26 |
27 | # Delete the project item
28 | Delete-ProjectItem $intelliSenseFileProjectItem
29 | }
30 | else {
31 | $projectScriptsFolderLeaf = Split-Path $projectScriptsFolderPath -Leaf
32 | Write-Host "Skipping '$projectScriptsFolderLeaf\$intelliSenseFileName' because it was modified." -ForegroundColor Magenta
33 | }
34 | }
35 | else {
36 | # The intellisense file was not found in project
37 | Write-Host "The intellisense file was not found in project at path $projectIntelliSenseFilePath"
38 | }
39 |
40 | # Update the _references.js file
41 | Remove-Reference $scriptsFolderProjectItem $jqueryFileNameRegEx
--------------------------------------------------------------------------------
/WebAPI/packages/jQuery.1.10.2/jQuery.1.10.2.nupkg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodAffection/Image-Upload-in-Angular-5-With-WebAPI/92454c7cf796836ee8f5fcacb4ff20f1890e0936/WebAPI/packages/jQuery.1.10.2/jQuery.1.10.2.nupkg
--------------------------------------------------------------------------------
/WebAPI/packages/jQuery.1.10.2/jQuery.1.10.2.nuspec:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | jQuery
5 | 1.10.2
6 | jQuery
7 | jQuery Foundation,Inc.
8 | jQuery Foundation,Inc.
9 | http://jquery.org/license
10 | http://jquery.com/
11 | false
12 | jQuery is a new kind of JavaScript Library.
13 | jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.
14 | NOTE: This package is maintained on behalf of the library owners by the NuGet Community Packages project at http://nugetpackages.codeplex.com/
15 | en-US
16 | jQuery
17 |
18 |
--------------------------------------------------------------------------------
/WebAPI/packages/repositories.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------