Commit Graph

41 Commits (69e2acf135430ee588f524a08189f40d4c2d1e52)

Author SHA1 Message Date
Scott Addie 6e9651829a
Updates to web API tutorial (#10604)
* Updates to web API tutorial

* Fix return type of HTTP DELETE action
2019-01-24 13:16:22 -06:00
Scott Addie 486eb723ae Fix invalid namespace (#10187)
Fixes https://github.com/aspnet/Docs/issues/10170
2019-01-03 11:24:26 -10:00
Alistair McMillan b5c536a36f Update index.html (#9930)
Minor change but it seems a little confusing to call the button "Edit" when you use it to "Save" your changed todo item.

Slight sense of deja vu. #9602
2018-12-10 13:04:45 -06:00
Luke Latham d18fa2b084
2.2 Sample Updates (#9795) 2018-12-04 10:56:13 -06:00
Rick Anderson 78151612a1
Unified Web API and 2.2 version (#9469)
* Unified Web API and 2.2 version

* work

* work

* work

* work

* work

* work

* work

* Update ToC link text

* Update ToC link text

* Update aspnetcore/tutorials/first-web-api.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* Update aspnetcore/tutorials/first-web-api/samples/2.2/TodoApi/Controllers/TodoController.cs

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* Update aspnetcore/tutorials/first-web-api/samples/2.2/TodoApi/Controllers/TodoController.cs

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* react to feedback 1

* react to feedback

* react to feedback

* react to feedback

* react to feedback

* Update aspnetcore/tutorials/first-web-api.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* Update aspnetcore/tutorials/first-web-api.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* Update aspnetcore/tutorials/first-web-api.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* Update aspnetcore/tutorials/first-web-api.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* Update aspnetcore/tutorials/first-web-api.md

Co-Authored-By: Rick-Anderson <riande@microsoft.com>

* react to feedback

* MVCify web API tutorial (#9629)

* work

* work

* work

* work

* work

* work

* work

* work

* work
2018-11-30 10:19:36 -10:00
Scott Addie 7b4ef4647a
Update button text in web API 2.1 app (#9615)
Related to https://github.com/aspnet/Docs/pull/9602. Applies the same change to the 2.1 sample app.
2018-11-16 10:23:51 -06:00
Alistair McMillan f598f928e2 Update title of button in HTML code for clarity (#9602)
Minor change but it seems a little confusing to call the button "Edit" when you use it to "Save" or "Submit" your changed todo item.
2018-11-16 10:14:06 -06:00
Fiyaz Bin Hasan df328de4f7 jquery xss vulnerability issue fix (#9415)
fix of issue [8482](https://github.com/aspnet/Docs/issues/8482)
both 2.0 and 2.1 samples have been modified. please review/test before merging. 

N.B: to be able to run the app, first you need to add the following two lines before `UseMvc()` in the startup. (since the same sample has been used to demostrate an interface less api and later used with a jquery ui).

`app.UseDefaultFiles();`
` app.UseStaticFiles();`

test case: try adding a self-running script in place of a name of a specific todo `<script>window.alert("I am vulnerable")</script>`

### Previously 

![previously](https://user-images.githubusercontent.com/6568968/47953037-dcaf3a00-dfa1-11e8-8fc3-803be44aa432.png)

### After fix

![now](https://user-images.githubusercontent.com/6568968/47953047-08322480-dfa2-11e8-90b4-57847fb44251.png)


[Internal Review Page](https://review.docs.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-2.1&branch=pr-en-us-9415#call-the-web-api-with-jquery)
2018-11-05 11:38:29 -06:00
Rick Anderson 8523625611
remove PDFs (#9312)
Part of #9182
2018-10-29 14:54:58 -10:00
Luke Latham 5704de168e Implicit versioning of the All package (#9223)
Fixes #9219 

@JunTaoLuo Dan calls out the implicit versioning "for 2.1 SDK or later;" however, we don't usually version the doc content by SDK release. We might need to say something for this update in the passage that I'm adding to the All topic (*aspnetcore/fundamentals/metapackage.md*) about which SDK version this applies to. I don't know if that's something that you would like to do or what version to call out.

I also remove the version from the samples. We also assume that devs are using the latest SDK with our samples.
2018-10-25 15:16:50 -10:00
Rahul Bansal 68146c76a2 Update site.js (#9192)
Fixes #9150  

The result from getData function (in site.js) gets cached so after Add, Edit and Delete operations it shows the same data in the HTML table. So its better to add "cache:false" option to ajax call inside the getData function.
2018-10-24 14:08:28 -05:00
Luke Latham 8e6dd4a7f4 Drop version from App package (#8881)
Addresses #8579 

I might be getting the hang of **_find and replace_** now. 😝

This doesn't touch a couple that ref 2.2.0. I'll tidy those up on https://github.com/aspnet/Docs/issues/8518 after 2.2 RTM.
2018-10-06 17:10:28 -10:00
Luke Latham 46f41d4774
Update All and App package versions (#8513) 2018-09-13 11:39:23 -05:00
Luke Latham 1a0f79a8fe
Update All/App package version (#8489) 2018-09-11 08:53:03 -05:00
Rick Anderson 0db247d72f
Explain why you can't delete all items (#8090)
* Explain why you can't delete all items

* Update getTodoItems.md
2018-08-14 18:17:03 -07:00
Scott Addie def41ab9ec
Fix checked checkbox logic (#7993) 2018-08-08 15:38:58 -05:00
Scott Addie 03b58a4b72
Add instruction to add Version attribute (#7872)
Addresses https://github.com/aspnet/Docs/issues/7866

The 2.1 project template doesn't add the `Version` attribute, but the sample app includes it (as it should). This PR tells the reader to add the attribute.
2018-07-30 11:50:47 -05:00
Luke Latham 34b33e245b Add version to App package references (#7551)
Fixes #7532
2018-07-10 22:43:09 -05:00
Scott Addie 8d723932c2 Simplify 2.1 metapackage reference (#6389) 2018-05-12 07:56:38 -10:00
Scott Addie 6e8e06c7c0
Web API tutorial 2.1 versioning cleanup (#6271)
* Web API tutorial 2.1 versioning cleanup

* Upgrade metapackage to 2.1 RC1

* Expand upon explanation of JSON

* Update dates in metadata
2018-05-08 08:25:08 -05:00
user135711 cf25bdf210 missing db vscode api (#6266) 2018-05-08 07:12:42 -05:00
Scott Addie 4354bbc791
Remove unnecessary screenshots from VS Web API tutorial (#6154) 2018-05-01 14:22:02 -05:00
Scott Addie d377a5f126
Add 2.1 Web API VS tutorial screenshot (#6151) 2018-05-01 10:48:09 -05:00
Scott Addie bb4be4768b
Update Web API tutorials for 2.1 (#6088)
* Update Web API tutorials for 2.1

* 3 --> three

* Fix line highlighting

* Fix Acrolinx errors

* Replace .html extension with .js

* JavaScript code samples cleanup

* Code sample cleanup

* Replace incorrect VS Code download link

* Update old screenshot

* Apply version zones

* Add more versioning zones

* Adjust csproj sample includes

* Add API ref links

* Verbiage tweaks

* Verbiage tweaks

* Update Next steps section

* Apply zoned versioning to macOS tutorial

* Simplify controllers

* Adjust models notes

* Code refactorings

* Restore named route verbiage

* Tweak named route verbiage in macOS tutorial

* Update old screenshot

* Simplify instructions

* Remove Required attributes

* Remove unused imports

* Update old screenshot

* Update Postman screenshots

* Delete unused screenshot

* Update verbiage

* Update verbiage in Windows tutorial

* Separate JS from HTML

* Make JS code snippets more manageable

* Small tweaks to macOS tutorial

* Remove unused screenshot

* React to feedback
2018-04-27 16:54:40 -05:00
Rick Anderson 14a6048aa1
Update TodoController2.cs (#5755) 2018-03-20 13:14:58 -10:00
Justin James 757aa85046 Core First Web API template selection update to match Visual Studio dialogs (#5633)
* update: new project instructions to match dialog

* update: template options image to match current dialog

* update: image size to 786x513
2018-03-08 17:48:07 -10:00
Rick Anderson 2890e91d59
update image for first Web API (#4959) 2017-12-08 15:50:37 -10:00
Rick Anderson 4b3a9d04f8
CSAT on Web API (#4681)
* CSAT on Web API

* CSAT on Web API

* CSAT on Web API

* last fix
2017-10-31 12:50:08 -10:00
Rick Anderson 82255a4cd9 fix API for V2 (#4110) 2017-08-25 15:16:18 -04:00
Rick Anderson 9a22c64759 update Web API intro to v2.0 (#3975)
* update Web API intro to v2.0

* update Web API intro to v2.0

* update Web API intro to v2.0

* update Web API intro to v2.0

* update Web API intro to v2.0

* update Web API intro to v2.0
2017-08-15 16:02:52 -04:00
Péter Bozsó 3d79a4b545 Fix DELETE operation in TodoController (#3898)
By using First(), there's the opportunity for an uncaught exception when the endpoint is called with an ID not present in the database.
2017-08-06 18:15:25 -04:00
Thawatchai Klinkliang 49de2ecfe1 Update TodoController.csc (#3421)
Parameter of _context.TodoItems.Update should be "todo" instead of "item"
2017-05-30 13:36:23 -07:00
Rick Anderson 30f80837bf Web API refactor and remove repository (#3399)
* work

* work

* work

* work

* work

* work

* work

* work

* work

* work
2017-05-24 13:48:25 -07:00
Rick Anderson 011c021ffc macOS VS Web API tutorial (#3345)
* done

* bold

* fix

* feedback

* more fixes
2017-05-11 12:04:57 -10:00
Rick Anderson 9d6fe033f7 xplat version of first Web API (#3059)
* xplat version of first Web API

* remove dup files

* clean up

* fix

* TD feedback

* remove singleton
2017-03-27 13:05:06 -10:00
Rick Anderson d1f6e5824c remove dead controller (#2950)
* remove dead controller

* end
2017-03-10 15:03:13 -10:00
Min 5ebf606c1c fix the error of no variable named _todoRepository (#2940)
at "Add a controller" section there is no variable called "_todoRepository" which is used by next sections
2017-03-10 14:04:16 -10:00
Rick Anderson c3b33db43d update intro to WebAPI to VS17 RTM (#2887)
* update intro to WebAPI to VS17 RTM

* react to feedback
2017-03-06 08:41:51 -10:00
damienbod 0df2c95ec2 Using in-memory database first web api todo api update (#2760)
* Using in-memory database

* removing patch
2017-02-13 16:36:48 -10:00
damienbod 3e9e693441 Damienbod/first web api todo api update to csproj (#2752)
* updating to csproj

* removing item group, not required

* using AddMvcCore instead of AddMVC

* reverting, recommendation from @danroth27
2017-02-13 09:06:53 -10:00
Daniel Roth e9c1419175 Add docfx content 2016-10-28 10:35:15 -07:00