Last post Nov 26, 2019 09:52 PM by bruce (sqlwork.com)
None
0 Points
1 Post
Nov 26, 2019 07:29 PM|ChrisJG|LINK
All-Star
53051 Points
23634 Posts
Nov 26, 2019 09:31 PM|mgebhard|LINK
Web API is a framework for building RESTful services. Representational state transfer (REST) is an software architecture.
Web API
https://docs.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-3.0
REST
https://en.wikipedia.org/wiki/Representational_state_transfer
58214 Points
15668 Posts
Nov 26, 2019 09:52 PM|bruce (sqlwork.com)|LINK
a REST api is specification of how to a REST webservice should work.
WebApi is a .net framework for building webservices. You can build a RESTful api with it.
note: a REST api should be idempotent for get, put, delete verbs. WebApi has no builtin support for this, you must code it.
https://en.wikipedia.org/wiki/Idempotence#Computer_science_meaning
None
0 Points
1 Post
Web api and RESTful
Nov 26, 2019 07:29 PM|ChrisJG|LINK
What is the relationship and differences between them? Is one, restful, a principle, while webapi is the code you write?
Many thanks.
All-Star
53051 Points
23634 Posts
Re: Web api and RESTful
Nov 26, 2019 09:31 PM|mgebhard|LINK
Web API is a framework for building RESTful services. Representational state transfer (REST) is an software architecture.
Web API
https://docs.microsoft.com/en-us/aspnet/core/web-api/?view=aspnetcore-3.0
REST
https://en.wikipedia.org/wiki/Representational_state_transfer
All-Star
58214 Points
15668 Posts
Re: Web api and RESTful
Nov 26, 2019 09:52 PM|bruce (sqlwork.com)|LINK
a REST api is specification of how to a REST webservice should work.
WebApi is a .net framework for building webservices. You can build a RESTful api with it.
note: a REST api should be idempotent for get, put, delete verbs. WebApi has no builtin support for this, you must code it.
https://en.wikipedia.org/wiki/Idempotence#Computer_science_meaning