Giter Club home page Giter Club logo

go-itchio's People

Contributors

200sc avatar fasterthanlime avatar leafo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

go-itchio's Issues

More options for search

Hello! I'm building an itch.io app for Ubuntu Touch and I'm using this repository as a kind-of API documentation. Is there a way to pass additional parameters to the search endpoint?

Having the ability to filter by platform and tags would be what I'm looking for.

Pin go-itchio to specific API version

Right now, it should be requesting API v2.

See #2

This is not an immediate issue as https://api.itch.io/ serves version 2 - but we don't want folks releasing software using a version of go-itchio that doesn't have that header.

At this point in time, only internal projects (which we can upgrade easily) and https://github.com/itchio/itch-setup (which isn't released yet) use go-itchio's v2. butler is still using an older go-itchio version that talks to API v1.

Remove APIDateFormat, RFC3339 for everyone!

If a server was to actually return the types that go-itchio says it expects, and then butler or another service using go-itchio tried to use those types, time parsing would fail (causing e.g. butler to crash) because APIDateFormat isn't RFC3999, which is what time.Time will be encoded as in json.

This means that servers trying to respond to butlers requests right now would have to duplicate the contents of the types.go file and change the time.Time values into something that can have the right format, or otherwise wrap all types so that they could write their own MarshalJSON function.

If every type (with timestamps) in the package had a MarshalJSON function which formatted their times using APIDateFormat, this would be resolved without breaking the API, and a breaking API change for DYI could be to move out the CreatedAt/UpdatedAt pairs into a type that would be embedded in the types that use it, and just MarshalJSON that and the CreatedAt/PublishedAt field for a game.

An alternative solution would be somehow working with the mapstructure package to support RFC 3999, as this line is currently the one enforcing that json received uses APIDateFormat.

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.