Coder Social home page Coder Social logo

Comments (4)

wetneb avatar wetneb commented on June 30, 2024

@Tpt curious what you think about this! :)

from wikidata-toolkit.

Tpt avatar Tpt commented on June 30, 2024

It's a great question! I would say explicitly proviidng code for uploading file is out of scope of Wikibase but we definitely should provide some ways to make it easy to do action API calls not explicitly supported by WDTK using the ApiConnection object. Interop with existing Java client(s) would be even better indeed. We should also keep in mind the there is a work in progress REST API for Wikibase and we might want to migrate WDTK to it, maybe dropping the action API support in the process.

from wikidata-toolkit.

wetneb avatar wetneb commented on June 30, 2024

Let's close this then, we will try to do upload actions on our own (accessing the credentials from Wikidata-Toolkit in some way, for instance by abusing JSON serialization)

from wikidata-toolkit.

wetneb avatar wetneb commented on June 30, 2024

I looked into this and it seems that we are nearly there: ApiConnection already provides public methods to perform arbitrary API actions. The only missing piece is the ability to pass files in those requests, so I would propose to add that.

from wikidata-toolkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.