steve1rm / BusbySurvey

Fetches and conducts a user suvery
MIT License
0 stars 0 forks source link

No JSON:API parsing applied #22

Open luongvo opened 1 month ago

luongvo commented 1 month ago

Our API is designed with JSON:API specification. That's why we have the data and attributes nodes from all responses. https://github.com/steve1rm/BusbyNimbleSurvey/blob/master/data/src/main/java/me/androidbox/data/authorization/DataDto.kt https://github.com/steve1rm/BusbyNimbleSurvey/blob/master/data/src/main/java/me/androidbox/data/authorization/AttributesDto.kt

https://github.com/steve1rm/BusbyNimbleSurvey/blob/master/data/src/main/java/me/androidbox/data/survey/DataDto.kt https://github.com/steve1rm/BusbyNimbleSurvey/blob/master/data/src/main/java/me/androidbox/data/survey/AttributesDto.kt

Have you worked or applied any JSON:API parsing on Android before? What's your way to improve this?

steve1rm commented 1 month ago

Have you worked or applied any JSON:API parsing on Android before? What's your way to improve this?

@luongvo I have never used that specification before (in fact this is the first time I have heard of it). I have just serialized the json data. Which is the most common way I have done this using rest API.