Giter VIP home page Giter VIP logo

sync's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

tobast

sync's Issues

Do card IDs have to be sequencial or just unique?

I'm thinking about generating card IDs as Unix time at creation, with a random 4-digit number appended (to avoid the problem of conflicting IDs if a user creates two cards in one second). Would it be a problem to have card IDs out of order as long as they were unique?

Endpoint: /cards (GET)

To check if all your cards are up-to-date.

Returns a list of cards and timestamp of last edit, so clients quickly know if they need to retrieve more info.

Example:

{
  "1": 1642852724,
  "2": 1642852724
}

How should this integrate into the Python library?

Should I make it transparent but slow (check at every access) or faster but needing special support (update periodically)?
Also, unless you have plans for how to implement this already, maybe the Python library would work as a storage backend for this?

Endpoint: /card/{id} (GET)

Get all data for this card.

Important note: this also contains the groups it belongs to.

{
  "store": "Clothing store",
  "note": "A note",
  [...]
}

Endpoint: /card/{id} (POST)

Update one or more fields:

{
  "store": {
    "from": Grocery Store",
    "to": "Rebranded store"
  }
}

HTTP 200 (OK) if all is fine
HTTP 409 (CONFLICT) if one or more fields are not current from or to valid when updating

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.