Giter Club home page Giter Club logo

dicodigital-api's People

Contributors

anaethelion avatar camillealram avatar carobee avatar harmo avatar mabhub avatar numahell avatar simon-previdente avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

dicodigital-api's Issues

Data import

@Anaethelion

How did you export the json fixtures from the framapad? Maybe we can automagically import them from a management command (Casper or BeautifulSoup) ?

Is it possible to get the real created_at datetimes from framapad ?

Ajout d'un Dockerfile

C'est toujours sympa d'avoir un Dockerfile, voire carrément une image disponible sur le hub.

J'ai une PR dans les tuyaux, ça arrive.

[EDIT] Elle est là #29

Index for word resource

It will be good to have the index in the json result for a word.

For now GET /word/2 returns this:

{
    "label": "0",
    "creator": "anon",
    "url": "http://dicodigital-api.herokuapp.com/word/2/",
    "created_at": "2015-10-10T22:38:03.864271Z",
    "definitions": [
        {
            "word": "http://dicodigital-api.herokuapp.com/word/2/",
            "text": "Null et non avenu",
            "contributor": "anon",
            "is_primary": true,
            "created_at": "2015-10-10T22:38:03.864314Z"
        }
    ]
}

It will be great if you publish something like that:

{
    "label": "0",
    "id": 2,
    "creator": "anon",
    "url": "http://dicodigital-api.herokuapp.com/word/2/",
    "created_at": "2015-10-10T22:38:03.864271Z",
    "definitions": [
        {
            "word": "http://dicodigital-api.herokuapp.com/word/2/",
            "text": "Null et non avenu",
            "contributor": "anon",
            "is_primary": true,
            "created_at": "2015-10-10T22:38:03.864314Z"
        }
    ]
}

403 sur /docs

La documentation n'est pas disponible sans être connecté.

Word's slug related links | MultipleObjectsReturned exception

Actually the word's links defined by the url field in serializer is load with the autoslug field based on word's label.

In the case of +1 and 1 words, the slugs are exactly the same and produce a MultipleObjectsReturned exception during a GET or PUT request.

This related link must be construct with the word pk, and the slug must be used for search only, with its dedicated url to prevent conflict between a numeric word type and a PK.

Random word | ValueError

Sometimes a ValueError exception is raised after a query with ?random=true parameter.

The randint use in filter must be fixed.

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.