मुख्य सामग्रीवर वगळा

पोस्ट्स

मार्च, २०१९ पासूनच्या पोेस्ट दाखवत आहे

REST WEB API

What is REST Representational state transfer it is the architectural style of building Decoupled application What is REpresentational state transfer transfer of the state of representation(json or xml) of the resource One important thing in rest is rest is all about using nouns for ex api/product/9 is nous in soap it is getproducts() is full of actions 4 type of request in http protocol can have 4 verbs GET Post Put Delete in short rest is architecture style soap is protocal when anyone tells about web api it is rest and web services  it is soap api Rest Constraints

WEB API with Auth Token1

Steps to remembers create a new app with asp.net mvc webapi select individual authentication Then add entity framwob rk to connect employee db Use asp net membership to connect to current db by setting up the default <connectionStrings>     <add name="DefaultConnection" connectionString=" data source=.;initial catalog=EmployeeDB;user id=sa;password=sa; Integrated Security=True" providerName="System.Data.SqlClient" />   <add name="EmployeeDBEntities" connectionString="metadata=res://*/EmployeeDBEntities.csdl|res://*/EmployeeDBEntities.ssdl|res://*/EmployeeDBEntities.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.;initial catalog=EmployeeDB;user id=sa;password=sa;;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings> get token   post request http://localhost:64634/token requestbod...