Skip to content

Commit ee0ec35

Browse files
committed
Updated .gitignore and Project_Readme
1 parent cfee412 commit ee0ec35

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
TodoApp.xproj.user
1+
TodoRestWebAPI.xproj.user
22
.vs/*
3+
bin/*
4+
obj/*
35
*.sln

samples/features/json/todo-app/dotnet-rest-api/Project_Readme.html

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>Welcome to ASP.NET Core</title>
5+
<title>Welcome to ASP.NET Core Web API REST Service</title>
66
<style>
77
html {
88
background: #f1f1f1;
@@ -146,22 +146,35 @@ <h2>This application consists of:</h2>
146146
</ul>
147147
</div>
148148
<div class="section">
149-
<h2>Run</h2>
149+
<h2>Setup and configure</h2>
150150
<ul>
151151
<li>Create new database on SQL Server 2016 or Azure SQL.</li>
152+
<li>If you are using Azure SQL make sure that firewall rules in Azure enable you to connect to applicaiton.</li>
152153
<li>Execute setup.sql script to create Todo table and populate it with sample data</li>
153-
<li>Open xproj file in Visual Studio 2015 and set connection string in Startup.cs file.</li>
154-
<li>Run project and call REST api on /api/Todo URL.</li>
154+
<li>Open xproj file in Visual Studio 2015 and set connection string in Startup.cs file:
155+
<code>
156+
157+
158+
public void ConfigureServices(IServiceCollection&nbsp;services)
159+
{
160+
161+
const string ConnString = "Server=SERVERNAME.database.windows.net;Database=DATABASENAME;User&nbsp;Id=USERNAME;Password=PASSWORD";
162+
163+
</code>
164+
165+
</li>
155166
</ul>
156167
</div>
168+
157169
<div class="section last">
158-
<h2>Try REST Service</h2>
170+
<h2>Run</h2>
159171
<ul>
160-
<li>Open /api/Todo or /api/Todo/1 URLs to try GET methods.</li>
172+
<li>Run the project and see results returned from /api/Todo URL.</li>
173+
<li>Open /api/Todo/1 URL to try GET method that returns single Todo item.</li>
161174
<li>Use some tool that send POST, PUT, PATCH, or DELETE requests to web server (e.g. Chrome Poster) to try other methods.</li>
162175
</ul>
163-
</div>
164-
176+
</div>
177+
165178
<div id="footer">
166179
<p>We would love to hear your feedback</p>
167180
</div>

0 commit comments

Comments
 (0)