Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New permalink & url webservices #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

gbour
Copy link

@gbour gbour commented May 8, 2014

Hello,

I've implemented 2 new webservices to return page infos either from permalink or uri.
Returned payload use JSON format.

I use it for my monkey-shaarli project (greasemonkey script to display shaarli informations over visited pages)

Guillaume Bour added 2 commits May 7, 2014 18:57
  - ws=permalink : return link description (json) given a permalink, if found; 404 else
  - ws=link      : return link description (json) given an url, if found; 404 else

i.e:
  http://sharli.uri/?ws=permalink&term=kaJ9Rw
  http://sharli.uri/?ws=url&term=http:%2F%2Fsebsauvage.net%2Fwiki%2Fdoku.php%3Fid%3Dphp:shaarli

  both returns:
    {"title":"Shaarli - sebsauvage.net","url":"http:\/\/sebsauvage.net\/wiki\/doku.php?id=php:shaarli",
     "description":"Welcome to Shaarli ! This is a bookmark. To edit or delete me, you must first login.",
     "private":false,"linkdate":"20110914_190000","tags":["opensource","software"],"timestamp":943916400}
…r (returns 401) from

link really not found (returns 404)
@alexdantas
Copy link

This is awesome!

Aww, come on! Why won't the author check this out? 😣

fanch317 pushed a commit to fanch317/Shaarli that referenced this pull request Jul 26, 2015
It only concerns the date of the day in the main title.

Fixes sebsauvage#182

Note that daily RSS feed is not generated through templates. Date are still hard formatted in that case.
fanch317 pushed a commit to fanch317/Shaarli that referenced this pull request Jul 26, 2015
Allow custom date format and title in templates.

Also a bit of code style review.

Fixes sebsauvage#182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants