4.11.0 • Published 10 years ago

ark-locationpool v4.11.0

Weekly downloads
172
License
-
Repository
github
Last release
10 years ago

ark-locationpool

A hapi-plugin for ark our application server of locator-app.com. Used for handling the location(s) of a user.

Usage

npm install ark-locationpool to install the plugin (use the option -S to include it in your project)

// Server 
var Locationpool = require('ark-locationpool'); // import it to your code
var loc = new Locationpool(); // create new instance

server.register(loc, function(err) { // register plugin to hapi server

 if (err) {
  return console.error(err);
 } else {
  server.start();  // start server
 }
 
});

Server has now additional route endpoints for handling location related operations.

For example: ####GET

RessourceDescriptionon Success
/users/:userID/locations/returns a locationpool (list) of saved location of the userjson object
/users/:userID/locations/:locationsIDreturns a particular saved location of the userjson object

####DELETE |Ressource | Description | on Success | |---|---|---| |/users/:userID/locations/:locationsID | deletes a particular saved location of the user | json object |

####POST

RessourceDescription
/users/:userID/locations/adds a location into the location pool of the user

####PUT

RessourceDescription
/users/:userID/locations/:locationsIDupdates a location of the location pool of the user

For a list of all routes checkout the main server ark, start it and open swagger

4.11.0

10 years ago

4.10.0

10 years ago

4.9.1

10 years ago

4.9.0

10 years ago

4.8.0

10 years ago

4.7.0

10 years ago

4.6.3

10 years ago

4.6.2

10 years ago

4.6.1

10 years ago

4.6.0

10 years ago

4.5.1

10 years ago

4.5.0

10 years ago

4.4.0

10 years ago

4.3.0

10 years ago

4.2.7

10 years ago

4.2.6

10 years ago

4.2.5

10 years ago

4.2.4

10 years ago

4.2.3

10 years ago

4.2.2

10 years ago

4.2.1

10 years ago

4.2.0

10 years ago

4.1.0

10 years ago

4.0.3

10 years ago

4.0.2

10 years ago

4.0.1

10 years ago

4.0.0

10 years ago

3.5.1

10 years ago

3.5.0

10 years ago

3.4.1

10 years ago

3.3.1

10 years ago

3.4.0

10 years ago

3.3.0

10 years ago

3.2.1

10 years ago

3.2.0

10 years ago

3.1.1

10 years ago

3.1.0

10 years ago

3.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.1.0

10 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago