Open-event-droidgen: Add FAQs section

Created on 30 Jan 2018  路  4Comments  路  Source: fossasia/open-event-droidgen

Actual Behaviour

There is no FAQ section in the app.

Expected Behaviour

There should be one.

Would you like to work on the issue?

Yes

@iamareebjamal Should we add this?

has-PR

Most helpful comment

There are APIs for FAQs : https://open-event-api.herokuapp.com/#faq-event-faq-collection-get
image

Response -
{
"meta": {
"count": 1
},
"data": [
{
"relationships": {
"faq-type": {
"links": {
"self": "/v1/faqs/1/relationships/faq-type",
"related": "/v1/faqs/1/faq-type"
}
},
"event": {
"links": {
"self": "/v1/faqs/1/relationships/event",
"related": "/v1/faqs/1/event"
}
}
},
"attributes": {
"question": "Sample Question",
"answer": "Sample Answer"
},
"type": "faq",
"id": 1,
"links": {
"self": "/v1/faqs/1"
}
}
],
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "/v1/events/1/faqs"
}
}

So we can fetch this and store it locally. Make a new fragment for FAQs since this is important for any event app. Also we can make the FAQs searchable since the number of FAQs might be large and this is will make it easier for the user to look for what he wants.

All in all this will increase the functionality of the app and we will be making use of a relevant API feature.

All 4 comments

Please add proposed contents here

There are APIs for FAQs : https://open-event-api.herokuapp.com/#faq-event-faq-collection-get
image

Response -
{
"meta": {
"count": 1
},
"data": [
{
"relationships": {
"faq-type": {
"links": {
"self": "/v1/faqs/1/relationships/faq-type",
"related": "/v1/faqs/1/faq-type"
}
},
"event": {
"links": {
"self": "/v1/faqs/1/relationships/event",
"related": "/v1/faqs/1/event"
}
}
},
"attributes": {
"question": "Sample Question",
"answer": "Sample Answer"
},
"type": "faq",
"id": 1,
"links": {
"self": "/v1/faqs/1"
}
}
],
"jsonapi": {
"version": "1.0"
},
"links": {
"self": "/v1/events/1/faqs"
}
}

So we can fetch this and store it locally. Make a new fragment for FAQs since this is important for any event app. Also we can make the FAQs searchable since the number of FAQs might be large and this is will make it easier for the user to look for what he wants.

All in all this will increase the functionality of the app and we will be making use of a relevant API feature.

Closing as there is no sample faqs presently

There's no need of sample FAQs, you can add your own FAQs to test

Was this page helpful?
0 / 5 - 0 ratings

Related issues

97k picture 97k  路  5Comments

iamareebjamal picture iamareebjamal  路  7Comments

shreyasnbhat picture shreyasnbhat  路  8Comments

dr0pdb picture dr0pdb  路  5Comments

Shailesh351 picture Shailesh351  路  6Comments