Created
October 30, 2017 13:35
-
-
Save dontpaniclabsgists/6248dd09a403368ce8699a21905fa4e6 to your computer and use it in GitHub Desktop.
azure_functions_6_1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class WardrobesList | |
{ | |
[FunctionName("WardrobesList")] | |
public static async Task<HttpResponseMessage> Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)]HttpRequestMessage req, TraceWriter log) | |
{ | |
log.Info("C# HTTP trigger function processed a request."); | |
var factory = new Accessors.AccessorFactory("", ""); | |
var accessor = factory.CreateWardrobeAccessor(); | |
var wardrobes = await accessor.Wardrobes(); | |
var json = Newtonsoft.Json.JsonConvert.SerializeObject(wardrobes); | |
return req.CreateResponse(HttpStatusCode.OK, json); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment