Example: https://questions.bigfive.maccyber.io/
micro webservice that returns bigfive questions
$ curl -v http://localhost:3000/getTests
[
"100",
"120",
"20",
"50",
"hexaco"
]
$ curl -v http://localhost:3000/getQuestions -d '{"page": 1, "lang": "en", "limit": 5, testType: "120" }'
$ curl -v http://localhost:3000/getQuestions?page=1&lang=en&testType=120
{
"totalQuestions":120,
"limit":5,
"totalPages":24,
"percentDone":4,
"page":1,
"langCode":"en",
"languages":[
"en",
"no"
],
"from":1,
"to":6,
"testInfo":{
"test":"Johnson-120-IPIP-NEO-PI-R",
"link":"http://ipip.ori.org/30FacetNEO-PI-RItems.htm",
"info":"test info ..."
},
"next":"https://localhost:3000/getQuestions?page=2",
"previous":false,
"questions":[
{
"text":"Worry about things",
"choises":[
{
"text":"Very Inaccurate",
"score":1,
"color":1
},
{
"text":"Moderately Inaccurate",
"score":2,
"color":2
},
{
"text":"Neither Accurate Nor Inaccurate",
"score":3,
"color":3
},
{
"text":"Moderately Accurate",
"score":4,
"color":4
},
{
"text":"Very Accurate",
"score":5,
"color":5
}
],
"domain":"N",
"facet":1,
"id":1
},
{
"text":"Make friends easily",
"choises":[
{
"text":"Very Inaccurate",
"score":1,
"color":1
},
{
"text":"Moderately Inaccurate",
"score":2,
"color":2
},
{
"text":"Neither Accurate Nor Inaccurate",
"score":3,
"color":3
},
{
"text":"Moderately Accurate",
"score":4,
"color":4
},
{
"text":"Very Accurate",
"score":5,
"color":5
}
],
"domain":"E",
"facet":1,
"id":2
},
{
"text":"Have a vivid imagination",
"choises":[
{
"text":"Very Inaccurate",
"score":1,
"color":1
},
{
"text":"Moderately Inaccurate",
"score":2,
"color":2
},
{
"text":"Neither Accurate Nor Inaccurate",
"score":3,
"color":3
},
{
"text":"Moderately Accurate",
"score":4,
"color":4
},
{
"text":"Very Accurate",
"score":5,
"color":5
}
],
"domain":"O",
"facet":1,
"id":3
},
{
"text":"Trust others",
"choises":[
{
"text":"Very Inaccurate",
"score":1,
"color":1
},
{
"text":"Moderately Inaccurate",
"score":2,
"color":2
},
{
"text":"Neither Accurate Nor Inaccurate",
"score":3,
"color":3
},
{
"text":"Moderately Accurate",
"score":4,
"color":4
},
{
"text":"Very Accurate",
"score":5,
"color":5
}
],
"domain":"A",
"facet":1,
"id":4
},
{
"text":"Complete tasks successfully",
"choises":[
{
"text":"Very Inaccurate",
"score":1,
"color":1
},
{
"text":"Moderately Inaccurate",
"score":2,
"color":2
},
{
"text":"Neither Accurate Nor Inaccurate",
"score":3,
"color":3
},
{
"text":"Moderately Accurate",
"score":4,
"color":4
},
{
"text":"Very Accurate",
"score":5,
"color":5
}
],
"domain":"C",
"facet":1,
"id":5
}
]
}
Set lang
to code
Code | Name | Translator |
---|---|---|
en | English | |
no | Norwegian | Eli Huseby |
es | Spanish | nieled |
Set testType
to code
Code | Name |
---|---|
120 | Johnson-120-IPIP-NEO-PI-R |
100 | - |
50 | - |
20 | - |
hexaco | - |
Deploy using Now
$ now https://github.com/maccyber/micro-bigfive-questions
- bigfive-web Web frontend for bigfive tests
- micro-bigfive-evaluator Webservice that evaluates bigfive questions
- micro-bigfive-generator Webservice that generates and saves results to bigfive-web
- micro-bigfive-results Webservice that returns bigfive informative test results
- micro-bigfive-save Webservice that stores bigfive answers