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

How to use/enable the api #903

Closed
ghost opened this issue Jul 22, 2017 · 4 comments
Closed

How to use/enable the api #903

ghost opened this issue Jul 22, 2017 · 4 comments
Labels
API REST API server support installation and configuration issues

Comments

@ghost
Copy link

ghost commented Jul 22, 2017

I recently installed shaarli V0.9 on my personal server : https://shaarli.buron.coffee
And I want to use the api, but it seems that it doesn't works.

I first tried directly URL for example : https://shaarli.buron.coffee/api/v1/info. And I get a 404 error.

And I tried the Python-client and it was the same result.

What I have to do to solve this ?

@virtualtam virtualtam added server support installation and configuration issues labels Jul 23, 2017
@virtualtam
Copy link
Member

Hi @emixam150 !

How is your web server configured?

URL rewriting must be enabled for the REST API to work, see https://shaarli.readthedocs.io/en/master/Server-configuration

More specifically:

@ghost
Copy link
Author

ghost commented Jul 24, 2017

Hey, thank you a lot for your response. You was right, I forget to check my apache configuration and I just have to add this in the site conf file:

<Directory /var/www/shaarli/ >
	AllowOverride All
</Directory>

By the way, do you know if there is a node.js module to handle with the api ?

@ghost ghost closed this as completed Jul 24, 2017
@virtualtam
Copy link
Member

You're welcome @emixam150 ;-)

By the way, do you know if there is a node.js module to handle with the api ?

Not that I know of, this should be simple to write:

@ghost
Copy link
Author

ghost commented Jul 25, 2017

Thanks, I will try to do something :)

virtualtam added a commit to virtualtam/Shaarli that referenced this issue Aug 5, 2017
Relates to shaarli#903
Relates to shaarli#905

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Lucas-C pushed a commit to Lucas-C/Shaarli that referenced this issue Aug 6, 2017
Relates to shaarli#903
Relates to shaarli#905

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API REST API server support installation and configuration issues
Projects
None yet
Development

No branches or pull requests

2 participants