Skip to content

Handling versioned api #134

Open
Open

Description

@dannyfraser

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?

Activity

  1. dannyfraser commented on Jun 12, 2018

    @dannyfraser
    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

  2. wardi commented on Jun 12, 2018

    @wardi
    Contributor

    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.

  3. zotya commented on May 22, 2019

    @zotya

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions