azure-mobile-services

Azure mobile apps CRUD operations on SQL table (node.js backend)

╄→尐↘猪︶ㄣ 提交于 2019-12-05 20:01:48
This is my first post here so please don't get mad if my formatting is a bit off ;-) I'm trying to develop a backend solution using Azure mobile apps and node.js for server side scripts. It is a steep curve as I am new to javaScript and node.js coming from the embedded world. What I have made is a custom API that can add users to a MSSQL table, which is working fine using the tables object. However, I also need to be able to delete users from the same table. My code for adding a user is: var userTable = req.azureMobile.tables('MyfUserInfo'); item.id = uuid.v4(); userTable.insert(item).then(

How do we load related objects (Eager Loading) in Dot Net based Azure Mobile Service?

删除回忆录丶 提交于 2019-12-05 16:20:05
If I have following model structure public class QuestionItem: EntityData { public string Content { get; set; } public bool IsAnswered { get; set; } public int NumberOfAnswers { //todo: make it computable get; set; } public UserItem By { get; set; } public string ById { get; set; } public string AtLocation { get; set; } } & parent entity as public class UserItem:EntityData { public string UserName { get; set; } public string Gender { get; set; } public string BaseLocation { get; set; } public int Age { get; set; } public int Points { get; set; } } this does generate the DB Tables with proper

Uploading a file in Azure File Storage using node.js

不想你离开。 提交于 2019-12-05 13:20:41
问题 We are trying create an webservice to upload files to Azure file storage using node.js service. Below is the node.js server code. exports.post = function(request, response){ var shareName = request.headers.sharename; var dirPath = request.headers.directorypath; var fileName = request.headers.filename; var body; var length; request.on("data", function(chunk){ body += chunk; console.log("Get data"); }); request.on("end", function(){ try{ console.log("end"); var data = body; length = data.length

Azure Mobile Service TableController not returning inner objects

ε祈祈猫儿з 提交于 2019-12-05 12:59:29
I am creating a basic (my first) Azure Mobile Service with Table Storage to control a simple Events app. My DataObjects consists of 2 object types: Coordinator and Event , I want Coordinators to be a separate table to store specific info that I don't want it denormalized inside the Events, but Events also has a inner object Location to store details for the event's location, but that I want to store denormalized as I don't want to maintain this details separately from the Event. Here the objects I have so far: DataObjests: public class Coordinator : EntityData { public string Name { get; set;

Android and Azure Mobile Services: Using invokeAPI to return recordset

三世轮回 提交于 2019-12-05 02:49:42
问题 I am trying something very simple. I have a custom API called "missingvehiclesfrominventoryjob" and it simply returns a record set from an standard SQL Query. I can do this in my WinForms and Windows Phone app easily but I cannot figure out how to do this on the Android App. Here is my code: (which DOES NOT COMPILE in Android Studio): msClient.invokeApi("missingvehiclesfrominventoryjob", kd, new ApiOperationCallback<List<InventoryProspects>>(){ @Override public void onCompleted(List

Offline Data Sync in Azure Mobile Apps with Views or Stored Procedure

≡放荡痞女 提交于 2019-12-05 02:36:51
问题 We have created a Xamarin Forms application and currently just running on Android. Backend is .Net Azure Mobile Apps service I understand from the articles that offline data sync only works with "/tables" endpoint. (at least thats what I understood) But my API exposes data from joined queries (entity relationship), and some from stored procedures. Does it mean these can't apply to current SDK? What are my options? Do I expose tables and handle the business logic for the joins in client end?

Integrating the MobileServiceClient with AngularJS

被刻印的时光 ゝ 提交于 2019-12-05 02:02:26
问题 I'm trying to use the WindowsAzure.MobileServiceClient within Angular to do single sign on and CRUD operations. Being an Angular noob, I'm trying to figure out the best way to do this: Instantiate it in the $rootScope in .run and call the functions from there? Create a service or factory and make the instantiation of the MobileServiceClient and all of the function calls in that? Would the currentUser and other information get lost when the service/factory isn't being used? Just spool up

How to add simple authentication to azure mobile/web apps with Azure Active Directory?

痴心易碎 提交于 2019-12-04 22:48:52
My goal is to secure my mobile app custom API methods and use then via httpclient(c#). As a part of the testing I used Postman to request a token and use it to access the resource. Avinash Gadiraju I will explain with the vanilla template that comes when creating a new Mobile App. Create a new mobile app. Publish it to Azure. Open it on Azure portal, Go to Settings blade. Find Authentication / Authorization . Turn App Service Authentication to On and select Azure Active Directory>Express>Create a new AD app . Open Active Directory (Management Portal), pick the directory for your account.

Neo4j in Azure mobile services

梦想与她 提交于 2019-12-04 21:59:43
I have been trying to use a Neo4j database as my database in an Azure Mobile service. I was following this tutorial and I cant seem to get it to work. Basically what the tutorial does is: Creates a VM hosted by Azure, running ubuntu and neo4j. Creates an Azure mobile service with an SQL table. Writes an insert script for the SQL table that uses node.js to connect to the Neo4j VM and past the data there. Unfortunately mine does not seem to work. The data gets posted to the mobile services SQL table but the script to post to the Neo4j server on the VM does not seem to work. I also know that the

Is there a way to automatically generate Swagger tags from precomipled C# Azure Functions?

て烟熏妆下的殇ゞ 提交于 2019-12-04 21:03:10
Is anyone aware of any .NET attributes that can be used to annotate a precompiled C# Azure Function so it can generate Swagger tags automatically? For example, I would like to auto-generate the "tags" entry in Swagger: /api/v1/revision: get: operationId: /api/v1/revision/get tags: - System produces: [] consumes: [] parameters: [] description: Gets the API version responses: '200': description: Success operation security: - apikeyQuery: [] Here is my C# function: public static class VersioningService { [FunctionName("ApiVersion")] public static async Task<HttpResponseMessage> ApiVersion(