Commit Graph

47 Commits (5c14d05fc2a7c5eb81722f41aa6a905abcafbee3)

Author SHA1 Message Date
Tom Dykstra a84f58e992
rc1 update (#23471) 2021-10-06 07:54:54 -10:00
Tom Dykstra 628d08e364
.NET 6 update web API tutorial (#23231)
* draft

* update byline

* proofread

* comment out vs mac tabs

* fix tabs

* fix tabs

* remove 'or later'

* remove 'preview'

* adjust moniker tag

* remove 'or later'

* fix snippet links

* fix snippet link

* fix rest of link

* tweak comments

* vs code instructions

* tweak nrt code

* tweak nrt code

* tweak nrt code

* proofread

* corrections
2021-09-13 19:50:27 -07:00
Fiyaz Bin Hasan a7841def20
lower-case urls (#23125) 2021-08-25 10:58:18 -07:00
Rick Anderson e0e2283e23
show removed Swagger calls /3 (#22835) 2021-07-23 10:43:21 -07:00
Rick Anderson 53a0733ec7
remove unnecessary NuGet Pkg from WebAPI (#21435)
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
2021-02-04 21:12:17 -06:00
Rick Anderson 84b365e876
Webapi update to 5.0/ra (#19781)
* Update first Web API to 5.0 RC1

* Update first Web API to .NET 5 RC1

* Update first Web API to .NET 5 RC1

* Update first Web API to .NET 5 RC1

* work

* work

* work

* clean up

* clean up

* clean up

* clean up
2020-09-21 13:33:22 -10:00
Kirk Larkin ad8c504915
Fix ActionResult<T> for consistency (#17540) 2020-03-31 13:40:35 -05:00
Kirk Larkin 283c41ea4f
Use FindAsync in Overposting sample. (#17172) 2020-03-02 14:01:25 -06:00
Rick Anderson 227633c844
Add DTO to prevent over-posting on API (#17074)
* Add DTO to prevent over-posting on API

* Add DTO to prevent over-posting on API

* Add DTO to prevent over-posting on API

* Add DTO to prevent over-posting on API

* Add DTO to prevent over-posting on API

* Apply suggestions from code review

Co-Authored-By: Artak <34246760+mkArtakMSFT@users.noreply.github.com>

* Update aspnetcore/tutorials/first-web-api/samples/3.0/TodoApiDTO/Controllers/TodoItemsController.cs

Co-Authored-By: Artak <34246760+mkArtakMSFT@users.noreply.github.com>

* Add DTO to prevent over-posting on API

* Apply suggestions from code review

Co-Authored-By: Kirk Larkin <6025110+serpent5@users.noreply.github.com>

* Update aspnetcore/tutorials/first-web-api/samples/3.0/TodoApiDTO/Controllers/TodoItemsController.cs

Co-Authored-By: Artak <34246760+mkArtakMSFT@users.noreply.github.com>

Co-authored-by: Artak <34246760+mkArtakMSFT@users.noreply.github.com>
Co-authored-by: Kirk Larkin <6025110+serpent5@users.noreply.github.com>
2020-02-20 14:37:39 -08:00
Eslam Fakhry 96166d092a Fix error message in UpdateItem function (#15776) 2019-11-19 17:54:35 -06:00
Rick Anderson 86e76bdd88
Revert "Updates to web API tutorial (#15108)" (#15167)
This reverts commit 591ffb6e4e.
2019-10-17 08:51:42 -10:00
Scott Addie 591ffb6e4e
Updates to web API tutorial (#15108)
* Updates to web API tutorial

* Remove /api prefix in routes

* Remove /api prefix in controller code

* Remove instructions to add .SqlServer package

* Restore /api prefix

* Simplify package installation instructions for VS

* remove 2.2 JS tutorial content

* use numbered steps

* add more numbered steps

* Revert "Remove instructions to add .SqlServer package"

This reverts commit 83c1e9dabb.

* more edits

* restore image

* fix numbering

* fix numbering

* fix indentation

* fix numbering
2019-10-15 13:36:22 -05:00
Rick Anderson 0bc59c4cdc Update Program.cs (#14775) 2019-10-03 09:25:06 -05:00
Nikita Potapenko dc8f9b7bea Update packages (#14574)
Use GA version
2019-09-25 07:58:43 -10:00
Scott Addie c566f9f309
Convert web API jQuery doc to Fetch API (#13874)
* Convert web API jQuery doc to Fetch API

* More work

* More edits

* Add missing file extension to source_path

* More edits

* Fix broken section anchor link
2019-08-27 13:31:29 -05:00
sergimrz 9183866903 Fix invalid namespace (#13652) 2019-08-04 13:43:46 -05:00
Scott Addie bc1e6c2f00
Convert string value assigned to id property to a number (#13495) 2019-07-24 20:53:37 -05:00
Rick Anderson 34b6ae1e9a work 2019-07-23 10:38:03 -06:00
Rick Anderson a7a570c46c work 2019-07-23 10:11:53 -06:00
Rick Anderson 5b20d1ce0a work 2019-07-17 12:51:28 -06:00
Rick Anderson 6a27a8b0de work 2019-07-16 22:21:38 -06:00
Rick Anderson a6b8e4d717 work 2019-07-16 19:09:20 -06:00
Rick Anderson df143d64bc work 2019-07-16 18:27:53 -06:00
Rick Anderson 59c880830b work 2019-07-16 18:20:38 -06:00
Rick Anderson 48ed272188 work 2019-07-15 19:11:07 -06:00
Rick Anderson acd6aa8012 work 2019-07-15 18:20:04 -06:00
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
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 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