Breeze App Endpoint

Get Enquiries

This method returns an Enquiry.

Get/api/breeze/enquiry/{id}

The URL must have the Enquiry Id. It returns an Enquiry entity.

Microsoft.NET example:

var enquiry = serviceManager.Breeze.Get(1);

JavaScript example:

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

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

Get All Enquiries

This method returns all Enquiries.

Get/api/breeze/enquiry

It returns a list of Enquiry entities.

Microsoft.NET example:

List<Enquiry> enquiries = serviceManager.Breeze.GetAll();

JavaScript example:

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

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

Get All Messages

This method returns all Messages.

Get/api/breeze/mailbox/{mailboxid}/messages/{limit}/{skip}

The URL must contain the Mailbox Id, limit (number), skip (number of messages it should skip). It returns a list of MailboxMessage entities.

Microsoft.NET example:

List<MailboxMessage> messages = serviceManager.Breeze.MailboxGetMessages(1, 10, 0);

JavaScript example:

var geminiUrl = "http://localhost/gemini/api/breeze/mailbox/1/messages/5/0";
var geminiUsername = Base64.encode("manager:xvitjc5bmm"); // user : apikey

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