dicodigital-api's Issues
Vote
Random word
Un filtre doit être ajouté pour obtenir un mot au hasard parmi les résultats, filtrés ou non.
https://trello.com/c/cWwUrtio/12-pouvoir-afficher-un-mot-au-hasard
403 sur /docs
La documentation n'est pas disponible sans être connecté.
Data import
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 ?
Put the project on Travis
- Use a tests-specific requirements
Top words
Random word | ValueError
Sometimes a ValueError exception is raised after a query with ?random=true parameter.
The randint use in filter must be fixed.
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
Deployment script
After a successful build on Travis, the app must be deployed :
- On production with a script
- On Heroku with automated service
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.
Modération de l'ajout
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"
}
]
}
Random definition
Dans le cadre de la demande https://trello.com/c/8uN8GvpC/10-avoir-un-mode-jeu , il faut pouvoir utiliser le filtre random sur les definitions.
Rechercher sur un label
Il faudrait rechercher un label
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.