express-wikimedia-collections
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -7,3 +7,3 @@ const edit = require('./edit-page'); | ||
var imageString = image ? '[[' + image + '|320px]]' : ''; | ||
var coordString = `{{#coordinates:${lat}|${lon}}}}`; | ||
var coordString = `{{#coordinates:${lat}|${lon}}}`; | ||
var body = [ '\'\'\'' + title + '\'\'\'', '', description, '', imageString, | ||
@@ -10,0 +10,0 @@ coordString ].join( '\n' ); |
{ | ||
"name": "express-wikimedia-collections", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Provides API to update and maintain collections of pages, stored as wiki pages on a wikimedia project.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,4 +7,13 @@ | ||
const init = require( 'express-wikimedia-collections' ) | ||
init( app, '/api', 'wikipedia', 'en' ); | ||
init( app, '/api', 'wikivoyage', 'en' ); | ||
``` | ||
Exposes the following APIS: | ||
* /api/collection/ | ||
* /api/collection/by/:username | ||
* /api/collection/by/:username/:id | ||
* /api/private/collection/:id/:action/:title (action=create,has,with,add,remove,edit) | ||
Lists are stored publically as pages @ en.wikivoyage.org/wiki/User<:user>/lists/<:id> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31228
29
897
19