1
0
mirror of https://github.com/owncloud/bookmarks.git synced 2024-11-29 04:24:11 +01:00
Bookmark app for ownCloud
Go to file
TtuxX 0c1a52e4d5 Check if URL already exists before adding
Changed the way `addBookmark` function checks if url already exists.

Now the `addBookmark` function checks wether the url one want to bookmark exists or not, independantly from its protocol.

In order to achieve this, the script :
- Removes everything from the url before the `://` part (included)
- Uses a `like` statement in the SQL query instead of `=`
- Adds a `%` to the url at the query execution
2015-01-05 22:22:43 +01:00
appinfo This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features. 2014-11-26 12:24:18 +01:00
controller Check if URL already exists before adding 2015-01-05 22:22:43 +01:00
css Make it look like FileApp -> No Border 2014-12-07 20:57:38 +01:00
img This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features. 2014-11-26 12:24:18 +01:00
js This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features. 2014-11-26 12:24:18 +01:00
l10n [tx-robot] updated from transifex 2014-12-20 02:10:19 -05:00
templates This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features. 2014-11-26 12:24:18 +01:00
tests This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features. 2014-11-26 12:24:18 +01:00
.scrutinizer.yml adding js/3rdparty to scrutinizer ignore 2014-11-26 12:27:12 +01:00
.travis.yml remove build.xml 2014-12-15 11:58:24 +01:00
COPYING This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features. 2014-11-26 12:24:18 +01:00
README.md This is a refactored / rewritten version of the bookmarks app using the app frameworks design and controller features. 2014-11-26 12:24:18 +01:00

Bookmarks app

Maintainers:

Developer setup info:

Installation:

Just clone this repo into one of your apps directory.

Status :

Rewrite by [Stefan Klemm] aka ganomi (https://github.com/ganomi)

  • This is a refactored / rewritten version of the bookmarks app using the app framework
  • Dependency Injection for user and db is used througout the controllers
  • The Routing features a consistent rest api
  • The Routing provides some legacy routes, so that for exampe the Android Bookmarks App still works.
  • Merged all the changes from https://github.com/owncloud/bookmarks/pull/68 and added visual fixes. App uses the App Framework Styling on the Client side now.

There is a publicly available api that provides access to bookmarks per user. (This is usefull in connection with the Wordpress Plugin https://github.com/mario-nolte/oc2wp-bookmarks)

Public Rest Api (JSON Formatting):

Example Url:

../apps/bookmarks/public/rest/v1/bookmark?user=username&password=password&tags[]=firsttag&tags[]=anothertag&select[]=description&conjunction=AND&sortby=description

Parameters:

  • user is a mandatory parameter. This will return all bookmarks from the specific user marked as public. (not yet possible!)
  • by providing the users password all bookmarks will be returned
  • tags[] can take multiple arguments and they are used to filter the requested bookmarks by tags
  • conjunction (default = or) sets the tag filter to OR or to AND
  • select[] takes multiple arguments. By default only url and title per bookmark are returned. Further you can select any attribute of the bookmarks table and also the attribute "tags"
  • sortby takes and attribute that results will be sorted by descending.