Skip to content

Commit 3def47d

Browse files
committed
initial commit with models
0 parents  commit 3def47d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+5480
-0
lines changed

.gitignore

+286
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,286 @@
1+
# Created by https://www.gitignore.io/api/visualstudiocode
2+
3+
### VisualStudioCode ###
4+
.vscode/*
5+
!.vscode/settings.json
6+
!.vscode/tasks.json
7+
!.vscode/launch.json
8+
!.vscode/extensions.json
9+
.history
10+
11+
# End of https://www.gitignore.io/api/visualstudiocode
12+
13+
# Created by https://www.gitignore.io/api/aspnetcore
14+
15+
### ASPNETCore ###
16+
## Ignore Visual Studio temporary files, build results, and
17+
## files generated by popular Visual Studio add-ons.
18+
19+
# User-specific files
20+
*.suo
21+
*.user
22+
*.userosscache
23+
*.sln.docstates
24+
25+
# User-specific files (MonoDevelop/Xamarin Studio)
26+
*.userprefs
27+
28+
# Build results
29+
[Dd]ebug/
30+
[Dd]ebugPublic/
31+
[Rr]elease/
32+
[Rr]eleases/
33+
x64/
34+
x86/
35+
bld/
36+
[Bb]in/
37+
[Oo]bj/
38+
[Ll]og/
39+
40+
# Visual Studio 2015 cache/options directory
41+
.vs/
42+
# Uncomment if you have tasks that create the project's static files in wwwroot
43+
#wwwroot/
44+
45+
# MSTest test Results
46+
[Tt]est[Rr]esult*/
47+
[Bb]uild[Ll]og.*
48+
49+
# NUNIT
50+
*.VisualState.xml
51+
TestResult.xml
52+
53+
# Build Results of an ATL Project
54+
[Dd]ebugPS/
55+
[Rr]eleasePS/
56+
dlldata.c
57+
58+
# DNX
59+
project.lock.json
60+
project.fragment.lock.json
61+
artifacts/
62+
63+
*_i.c
64+
*_p.c
65+
*_i.h
66+
*.ilk
67+
*.meta
68+
*.obj
69+
*.pch
70+
*.pdb
71+
*.pgc
72+
*.pgd
73+
*.rsp
74+
*.sbr
75+
*.tlb
76+
*.tli
77+
*.tlh
78+
*.tmp
79+
*.tmp_proj
80+
*.log
81+
*.vspscc
82+
*.vssscc
83+
.builds
84+
*.pidb
85+
*.svclog
86+
*.scc
87+
88+
# Chutzpah Test files
89+
_Chutzpah*
90+
91+
# Visual C++ cache files
92+
ipch/
93+
*.aps
94+
*.ncb
95+
*.opendb
96+
*.opensdf
97+
*.sdf
98+
*.cachefile
99+
*.VC.db
100+
*.VC.VC.opendb
101+
102+
# Visual Studio profiler
103+
*.psess
104+
*.vsp
105+
*.vspx
106+
*.sap
107+
108+
# TFS 2012 Local Workspace
109+
$tf/
110+
111+
# Guidance Automation Toolkit
112+
*.gpState
113+
114+
# ReSharper is a .NET coding add-in
115+
_ReSharper*/
116+
*.[Rr]e[Ss]harper
117+
*.DotSettings.user
118+
119+
# JustCode is a .NET coding add-in
120+
.JustCode
121+
122+
# TeamCity is a build add-in
123+
_TeamCity*
124+
125+
# DotCover is a Code Coverage Tool
126+
*.dotCover
127+
128+
# Visual Studio code coverage results
129+
*.coverage
130+
*.coveragexml
131+
132+
# NCrunch
133+
_NCrunch_*
134+
.*crunch*.local.xml
135+
nCrunchTemp_*
136+
137+
# MightyMoose
138+
*.mm.*
139+
AutoTest.Net/
140+
141+
# Web workbench (sass)
142+
.sass-cache/
143+
144+
# Installshield output folder
145+
[Ee]xpress/
146+
147+
# DocProject is a documentation generator add-in
148+
DocProject/buildhelp/
149+
DocProject/Help/*.HxT
150+
DocProject/Help/*.HxC
151+
DocProject/Help/*.hhc
152+
DocProject/Help/*.hhk
153+
DocProject/Help/*.hhp
154+
DocProject/Help/Html2
155+
DocProject/Help/html
156+
157+
# Click-Once directory
158+
publish/
159+
160+
# Publish Web Output
161+
*.[Pp]ublish.xml
162+
*.azurePubxml
163+
# TODO: Comment the next line if you want to checkin your web deploy settings
164+
# but database connection strings (with potential passwords) will be unencrypted
165+
*.pubxml
166+
*.publishproj
167+
168+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
169+
# checkin your Azure Web App publish settings, but sensitive information contained
170+
# in these scripts will be unencrypted
171+
PublishScripts/
172+
173+
# NuGet Packages
174+
*.nupkg
175+
# The packages folder can be ignored because of Package Restore
176+
**/packages/*
177+
# except build/, which is used as an MSBuild target.
178+
!**/packages/build/
179+
# Uncomment if necessary however generally it will be regenerated when needed
180+
#!**/packages/repositories.config
181+
# NuGet v3's project.json files produces more ignoreable files
182+
*.nuget.props
183+
*.nuget.targets
184+
185+
# Microsoft Azure Build Output
186+
csx/
187+
*.build.csdef
188+
189+
# Microsoft Azure Emulator
190+
ecf/
191+
rcf/
192+
193+
# Windows Store app package directories and files
194+
AppPackages/
195+
BundleArtifacts/
196+
Package.StoreAssociation.xml
197+
_pkginfo.txt
198+
199+
# Visual Studio cache files
200+
# files ending in .cache can be ignored
201+
*.[Cc]ache
202+
# but keep track of directories ending in .cache
203+
!*.[Cc]ache/
204+
205+
# Others
206+
ClientBin/
207+
~$*
208+
*~
209+
*.dbmdl
210+
*.dbproj.schemaview
211+
*.jfm
212+
*.pfx
213+
*.publishsettings
214+
node_modules/
215+
orleans.codegen.cs
216+
217+
# Since there are multiple workflows, uncomment next line to ignore bower_components
218+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
219+
#bower_components/
220+
221+
# RIA/Silverlight projects
222+
Generated_Code/
223+
224+
# Backup & report files from converting an old project file
225+
# to a newer Visual Studio version. Backup files are not needed,
226+
# because we have git ;-)
227+
_UpgradeReport_Files/
228+
Backup*/
229+
UpgradeLog*.XML
230+
UpgradeLog*.htm
231+
232+
# SQL Server files
233+
*.mdf
234+
*.ldf
235+
236+
# Business Intelligence projects
237+
*.rdl.data
238+
*.bim.layout
239+
*.bim_*.settings
240+
241+
# Microsoft Fakes
242+
FakesAssemblies/
243+
244+
# GhostDoc plugin setting file
245+
*.GhostDoc.xml
246+
247+
# Node.js Tools for Visual Studio
248+
.ntvs_analysis.dat
249+
250+
# Visual Studio 6 build log
251+
*.plg
252+
253+
# Visual Studio 6 workspace options file
254+
*.opt
255+
256+
# Visual Studio LightSwitch build output
257+
**/*.HTMLClient/GeneratedArtifacts
258+
**/*.DesktopClient/GeneratedArtifacts
259+
**/*.DesktopClient/ModelManifest.xml
260+
**/*.Server/GeneratedArtifacts
261+
**/*.Server/ModelManifest.xml
262+
_Pvt_Extensions
263+
264+
# Paket dependency manager
265+
.paket/paket.exe
266+
paket-files/
267+
268+
# FAKE - F# Make
269+
.fake/
270+
271+
# JetBrains Rider
272+
.idea/
273+
*.sln.iml
274+
275+
# CodeRush
276+
.cr/
277+
278+
# Python Tools for Visual Studio (PTVS)
279+
__pycache__/
280+
*.pyc
281+
282+
# Cake - Uncomment if you are using it
283+
# tools/
284+
285+
286+
# End of https://www.gitignore.io/api/aspnetcore

.vscode/launch.json

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
// Use IntelliSense to find out which attributes exist for C# debugging
3+
// Use hover for the description of the existing attributes
4+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": ".NET Core Launch (web)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/bin/Debug/netcoreapp2.0/ToLiAPI.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}",
16+
"stopAtEntry": false,
17+
"internalConsoleOptions": "openOnSessionStart",
18+
"launchBrowser": {
19+
"enabled": true,
20+
"args": "${auto-detect-url}",
21+
"windows": {
22+
"command": "cmd.exe",
23+
"args": "/C start ${auto-detect-url}"
24+
},
25+
"osx": {
26+
"command": "open"
27+
},
28+
"linux": {
29+
"command": "xdg-open"
30+
}
31+
},
32+
"env": {
33+
"ASPNETCORE_ENVIRONMENT": "Development"
34+
},
35+
"sourceFileMap": {
36+
"/Views": "${workspaceFolder}/Views"
37+
}
38+
},
39+
{
40+
"name": ".NET Core Attach",
41+
"type": "coreclr",
42+
"request": "attach",
43+
"processId": "${command:pickProcess}"
44+
}
45+
]
46+
}

.vscode/tasks.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/ToLiAPI.csproj"
11+
],
12+
"problemMatcher": "$msCompile"
13+
}
14+
]
15+
}

Controllers/ValuesController.cs

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
using Microsoft.AspNetCore.Mvc;
6+
7+
namespace ToLiAPI.Controllers
8+
{
9+
[Route("api/[controller]")]
10+
public class ValuesController : Controller
11+
{
12+
// GET api/values
13+
[HttpGet]
14+
public IEnumerable<string> Get()
15+
{
16+
return new string[] { "value1", "value2" };
17+
}
18+
19+
// GET api/values/5
20+
[HttpGet("{id}")]
21+
public string Get(int id)
22+
{
23+
return "value";
24+
}
25+
26+
// POST api/values
27+
[HttpPost]
28+
public void Post([FromBody]string value)
29+
{
30+
}
31+
32+
// PUT api/values/5
33+
[HttpPut("{id}")]
34+
public void Put(int id, [FromBody]string value)
35+
{
36+
}
37+
38+
// DELETE api/values/5
39+
[HttpDelete("{id}")]
40+
public void Delete(int id)
41+
{
42+
}
43+
}
44+
}

0 commit comments

Comments
 (0)