View FacebookWebApiJwt.cs
public class ProviderAndAccessToken { | |
public string Token { get; set; } | |
public string Provider { get; set; } | |
} | |
[AllowAnonymous] | |
[HttpPost] | |
[Route("JwtFromProviderAccessToken")] | |
public async Task<IHttpActionResult> JwtFromProviderAccessToken(ProviderAndAccessToken model) { | |
string id = null; |
View Example Go REST Endpoint using Postgres
package main | |
/* | |
CLI to use pq: > go get github.com/lib/pq | |
CLI to use mux router from the Gorilla Web Toolkit: > go get github.com/gorilla/mux | |
SQL Script: | |
CREATE TABLE Customer | |
( | |
CustomerId serial NOT NULL, |
View SwiftExample1
class Foo { | |
static func getNumber() -> Int { | |
return 88 | |
} | |
class func getAnotherNumber() -> Int { | |
return 99 | |
} | |
} |