Workspace Endpoint

Get

This method returns a Wrokspace.

Get/api/navigationcards/{workspaceid}

The URL must have the workspace Id. It returns a NavigationCard (Workspace).

Microsoft.NET example:

NavigationCard card = serviceManager.NavigationCard.Get(22);

JavaScript example:

var geminiUrl = "http://localhost/gemini/api/navigationcards/22";
var geminiUsername = Base64.encode("manager:xvitjc5bmm"); // user : apikey

$.ajax({
    url: geminiUrl,
    type: "GET",
    headers: { "Authorization": "Basic " + geminiUsername },
    success: function (data) {
      alert('Success!');
    }
});

Get User's Workspaces

This method returns a collection of Worksapces.

Get/api/navigationcards/users/{userid}

The URL must have the user Id. It returns a List of NavigationCards (Workspaces) for the user.

Microsoft.NET example:

List card = serviceManager.NavigationCard.GetByUser(1);

JavaScript example:

var geminiUrl = "http://localhost/gemini/api/navigationcards/users/1";
var geminiUsername = Base64.encode("manager:xvitjc5bmm"); // user : apikey

$.ajax({
    url: geminiUrl,
    type: "GET",
    headers: { "Authorization": "Basic " + geminiUsername },
    success: function (data) {
      alert('Success!');
    }
});

Update

This method updates an existing workspace.

PUT/api/admin/appnav/update

The request body must contain the NavigationCard Entity including the Id. The return value is a NavigationCard Entity.

Microsoft.NET example:

NavigationCard card = new NavigationCard();

card.Id = 18;
card.ProjectId = 17;
card.Title = "Urgent Issues";
card.UserId = 1;
card.Key = "ALL";

serviceManager.Admin.UpdateAppNavCard(card);

JavaScript example:

var geminiUrl = "http://localhost/gemini/api/admin/appnav/update";
var geminiLogin = Base64.encode("manager:xvitjc5bmm"); // user:apikey

var geminiData = {       
    ProjectId: "17",
    id: "18",
    Title: "Urgent Issues",
    UserId: "1",
    Key: "ALL"            
};

$.ajax({
    url: geminiUrl,
    type: "PUT",
    data: geminiProject,
    headers: { "Authorization": "Basic " + geminiLogin },
    success: function (data) {
      alert('Success!');
    }
});