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

Handling versioned api #134

Open
dannyfraser opened this issue Jun 12, 2018 · 3 comments
Open

Handling versioned api #134

dannyfraser opened this issue Jun 12, 2018 · 3 comments

Comments

@dannyfraser
Copy link

This line suggests that ckanapi doesn't support APIs with different versions, for example http://data.europa.eu/euodp/data/api/3 .

Does RemoteCKAN need a new parameter in the constructor to specify the API version?

@dannyfraser
Copy link
Author

Further research shows that the default behaviour is

If you don’t specify the version number then you will default to version 1 of the Model, Search and Util APIs and version 3 of the Action API.

https://docs.ckan.org/en/ckan-1.6/apiv3.html

@wardi
Copy link
Contributor

wardi commented Jun 12, 2018

ckanapi only uses the action api and so far there has been no update to the action api version. It's not a bad idea to add a parameter to allow a client to select the version, on the chance that we do come out with an action api v4 in the future.

@zotya
Copy link

zotya commented May 22, 2019

I had a similar issue, but my problem was, that the url for action api is not located on 'api/action/'.
I made a fork, and implemented a configurable url for the action api:
eea@cee14cd

Now, when I initialize the RemoteCKAN, I can set the url for api:

ckanapi.RemoteCKAN(self.__address,
            self.__apikey,
            self.__user_agent,
            base_url='myapilocation/action/')

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

No branches or pull requests

3 participants