HTTP
config.Routes.MapHttpRoute( name: “TodosForTodoList", routeTemplate: "api/todolists/{id}/todos", defaults: new { controller = “todolists”, action = “GetTodos” } ); public IEnumerable GetTodos() { … }
config.MapHttpAttributeRoutes(); [HttpGet("api/todolists/{id}/todos")] public IEnumerable GetTodos(int id) { … }
[HttpGet(“Demographics/{zipcode?}")] public Demographics Get(int? zipcode) { … } [HttpGet("people/{id:int}")] public Person Get(int id) { … } [HttpGet("people/{name:alpha}")] public Person Get(string name) { … } [HttpGet("Demographics/{zipcode=98052}")] public Demographics Get(int zipcode) { … }
Free Friends
Why no COOKI ES !?!
Authorization Grant Access Token Authorization Request Access Token
Protected Resource Client Authorization Server Authorization Endpoint Token Endpoint Browser CODE user User
Protected ResourceClient Authorization Server Authorization Endpoint Token Endpoint CODE 2 access tokenrefresh token Client 1 client
Protected ResourceClient authorization server Authorization Endpoint Token Endpoint 1 access token 2 refresh token Client Authorization: Bearer
Protected ResourceClient Authorization Server Authorization Endpoint Token Endpoint 2 access tokenrefresh token Client 1 client
Protected Resource Client