Socket
Book a DemoInstallSign in
Socket

ark-locationpool

Package Overview
Dependencies
Maintainers
5
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ark-locationpool

Plugin for managing all location of a user

4.11.0
latest
Source
npmnpm
Version published
Weekly downloads
2
Maintainers
5
Weekly downloads
 
Created
Source

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

RessourceDescriptionon Success
/users/:userID/locations/:locationsIDdeletes a particular saved location of the userjson object

####POST

|Ressource | Description | |---|---|---|---| |/users/:userID/locations/ | adds a location into the location pool of the user |

####PUT

|Ressource | Description | |---|---|---| |/users/:userID/locations/:locationsID | updates 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] (http://localhost:3001/documentation?tags=locationpool)

FAQs

Package last updated on 26 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.