Hoxwi.DB 1.0.0.52

HoxWi - Backend as a Service

Core utility to access and manage HoxDB (Hybrid Backend as a Service).

The owner has unlisted this package. This could mean that the package is deprecated or shouldn't be used anymore.
Install-Package Hoxwi.DB -Version 1.0.0.52
dotnet add package Hoxwi.DB --version 1.0.0.52
paket add Hoxwi.DB --version 1.0.0.52
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Thank you for downloading HoxWi Client

Please note that any data stored during this alpha period could be removed at any time due to technical changes.

Please add this section of code to your app settings or Web.Config file to make your client work:

<add key="DefaultHoxDbSvcUrl" value="https://YOUR-AIRPORT-CODE.hoxwi.com"/>
<add key="HoxDbApiSecret" value="YOUR-SECRET-KEY"/>

Before starting using this component please create your account, it is completely free for up to a certain amount of transactions/month.

To create your account go to www.hoxwi.com

A very simple sample of use for this client is:

using HoxWi.Db.Client;

...

    [HttpPost]
    public ActionResult Index(FormCollection form)
    {
        var client = new Client(Modes.Dynamic);
        var res = client.Add(new Db.InsertRequest("mycontainer", form));
        if (res.Success)
            ViewBag.Message = string.Format("Register had been included with the key {0}", res.Result);
        else
            ViewBag.Error = res.Error;

        return View();
    }

To expose an endpoint to provide or collect data from external sources (like partners) you must create public endpoints, following these steps:

  1. Create your public key (one for each external player if you wish)

Make a PUT call to: https://hoxwi.com/Wi/NewPublicKey

Raw body:

{
"secretkey":"YOUR-SECRET-KEY",
"publickey": "THE-PUBLIC-KEY-NAME",
"description": "Any description to help you understand what this endpoint does"
}

  1. Configure your endpoint

Make a PUT call to: https://hoxwi.com/Dynamic/Add

Raw body:
{
"secretkey":"YOUR-SECRET-KEY ",
"container": "hoxendpoints",
"lazy":true,
"document": {
"name":"THE-PUBLIC-ENDPOINT-NAME",
"container": "THE-INTERNAL-CONTAINER",
"storageType": "mysql",
"action": "insert",
"restricted": true,
"preJs":"",
"posJs":""
}
}

That is all. You now can share your endpoint with third parties and let then insert data into your brand-new container, the address would be:

https://hoxwi.com/Wi/ THE-PUBLIC-KEY-NAME/THE-PUBLIC-ENDPOINT-NAME

The raw body can contain any valid Json data.

Thank you for downloading HoxWi Client

Please note that any data stored during this alpha period could be removed at any time due to technical changes.

Please add this section of code to your app settings or Web.Config file to make your client work:

<add key="DefaultHoxDbSvcUrl" value="https://YOUR-AIRPORT-CODE.hoxwi.com"/>
<add key="HoxDbApiSecret" value="YOUR-SECRET-KEY"/>

Before starting using this component please create your account, it is completely free for up to a certain amount of transactions/month.

To create your account go to www.hoxwi.com

A very simple sample of use for this client is:

using HoxWi.Db.Client;

...

    [HttpPost]
    public ActionResult Index(FormCollection form)
    {
        var client = new Client(Modes.Dynamic);
        var res = client.Add(new Db.InsertRequest("mycontainer", form));
        if (res.Success)
            ViewBag.Message = string.Format("Register had been included with the key {0}", res.Result);
        else
            ViewBag.Error = res.Error;

        return View();
    }

To expose an endpoint to provide or collect data from external sources (like partners) you must create public endpoints, following these steps:

  1. Create your public key (one for each external player if you wish)

Make a PUT call to: https://hoxwi.com/Wi/NewPublicKey

Raw body:

{
"secretkey":"YOUR-SECRET-KEY",
"publickey": "THE-PUBLIC-KEY-NAME",
"description": "Any description to help you understand what this endpoint does"
}

  1. Configure your endpoint

Make a PUT call to: https://hoxwi.com/Dynamic/Add

Raw body:
{
"secretkey":"YOUR-SECRET-KEY ",
"container": "hoxendpoints",
"lazy":true,
"document": {
"name":"THE-PUBLIC-ENDPOINT-NAME",
"container": "THE-INTERNAL-CONTAINER",
"storageType": "mysql",
"action": "insert",
"restricted": true,
"preJs":"",
"posJs":""
}
}

That is all. You now can share your endpoint with third parties and let then insert data into your brand-new container, the address would be:

https://hoxwi.com/Wi/ THE-PUBLIC-KEY-NAME/THE-PUBLIC-ENDPOINT-NAME

The raw body can contain any valid Json data.

Release Notes

Production version

Version History

Version Downloads Last updated