Giter VIP home page Giter VIP logo

elestirorg_backend's Introduction

elestirorg_backend

elestirorg API v0.1

/login method POST Body : "username", "password".

Returns : JSON with "status", "data" and "message"(if error occurred).

/signup method POST Body : "email", "username", "password", "phoneNumber".

Returns : JSON with "status" and "message"(if error occurred).

/isloggedin method POST Header : "AuthToken"

Returns : JSON with "status" and "message"(if error occurred).

/getquestions method POST Body : "count"(not required), "offset"(not required) Header : "AuthToken" With "AuthToken" return contains user`s previous answers for each question("choice" in "data").

Returns : JSON with "status", "data" and "message"(if error occurred).

/createquestion method POST Body : "question" , "category" , "answers". Header : "AuthToken"

"answers" must be an array "answers" answers count must be between 2 and 5 (2 and 5 include).

"category" must be one of the following: "Siyaset" , "Eglence" , "General"

Returns : "status" and "message"(if error occurred).

/setchoice method POST Body: "questionID", "choice" Header : "AuthToken" "questionID" must be valid. "choice"(integer) must be between 1 and 5 (1 and 5 include).

Returns : JSON with "status", "data" and "message"(if error occurred).

/createcomment method POST Body: "questionID", "comment", "emoji". Header : "AuthToken" "questionID" must be valid.

Returns : JSON with "status", "message"(if error occurred).

/getcomments/{questionid} method GET Body: "count"(not required), "offset"(not required).

Returns: JSON with "status", "data" and "message"(if error occurred).

/user/{userid} method GET or POST Body: Header : "AuthToken"(not required).

Returns: Json with "status", "data" and "message"(if error occurred).

/getquestionsbyuserid/{userid} method GET Body: "offset"(not required) and "count"(not required).

Returns: Json with "status", "data" and "message"(if error occurred).

/getcommentsbyuserid/{userid} method GET Body: "offset"(not required) and "count"(not required).

Returns: Json with "status", "data" and "message"(if error occurred).

/question/{questionid} method POST or GET Header : "AuthToken" (with "AuthToken" method must be POST. not required).

Returns: Json with "status", "data" and "message"(if error occurred).

elestirorg_backend's People

Watchers

 avatar  avatar  avatar

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.