YesOrNo is a web project, made up using a Django REST framework & React.js application.
- Version: open alpha test.
- Technical dependencies: API returns JSON only.
- Alternative link: https://olehserikov.info/
Soon.
Dependencies: /api/polls/$ - list of <dict>
with fields:
- "id":
<int>
- "flow":
<str>
- "agree":
<int>
- "disagree":
<int>
- "likes":
<int>
- "dislikes":
<int>
Example:
[{"id":17,"flow":"Code","statement":"Hello World?","agree":1024,"disagree":256,"likes":800,"dislikes":600},{"id":132,"flow":"World","statement":"Hello, Earth?","agree":123,"disagree":222,"likes":444,"dislikes":333}]
Dependencies: /api/flows/$ - list of <dict>
with fields:
- "id":
<int>
- "name":
<str>
Example:
[{"id":12,"name":"Code"},{"id":32,"name":"World"}]
Dependencies: /api/users/$ - list of <dict>
with fields:
- "id":
<int>
- "username":
<str>
- "polls":
<list>
<int>
Example:
[{"id":232,"username":"Daniel","polls":[11,22,33,66]},{"id":444,"username":"FooBar","polls":[]}]
Dependencies: /api/profile/$ (if user is authenticated) - <dict>
with fields:
- "is_auth":
<bool>
- "message":
<str>
or<null>
- "voted":
<dict>
"<int>"
:<bool>
- "rated":
<dict>
"<int>"
:<bool>
Example:
{"username":"Daniel","is_auth":true,"message":null,"voted":{"2":false,"3":true,"4":true},"rated":{"4":true,"5":false,"6":false}}
Dependencies: /api/profile/$ (if user is not authenticated) - <dict>
with fields:
- "is_auth":
<bool>
- "message":
<str>
or<null>
Example:
{"is_auth":false,"message":"Wrong Username or Password, please try again or reset your Password"}
Dependencies: /api/polls_by_user/$ - list of <dict>
with fields:
- "id":
<int>
- "flow":
<str>
- "agree":
<int>
- "disagree":
<int>
- "likes":
<int>
- "dislikes":
<int>
Example:
[{"id":22,"flow":"Code","statement":"Hello World?","agree":1024,"disagree":256,"likes":800,"dislikes":600},{"id":144,"flow":"World","statement":"Hello, Earth?","agree":123,"disagree":222,"likes":444,"dislikes":333}]
7. Dictionary that represent Poll object fields (if Poll object with the id is in database) or empty dictionary (if Poll object with the id is not in database).
Dependencies: /api/shortpoll_by_id/(?P.+)/$ - <dict>
with fields:
- "agree_rate":
<int>
- "rate":
<int>
Examples:
{"agree_rate":66,"rate":100}
Dependencies: /api/polls_by_flow/(?P<flow_name>.+)/$ - list of <dict>
with fields:
- "id":
<int>
- "flow":
<str>
- "agree":
<int>
- "disagree":
<int>
- "likes":
<int>
- "dislikes":
<int>
Example:
[{"id":22,"flow":"Code","statement":"Hello World?","agree":1024,"disagree":256,"likes":800,"dislikes":600},{"id":144,"flow":"Code","statement":"Hello, Earth?","agree":123,"disagree":222,"likes":444,"dislikes":333}]
Soon.
Soon.