Dev_Interview_Prep_App icon indicating copy to clipboard operation
Dev_Interview_Prep_App copied to clipboard

Add Method to request Json Information for a language in the languages folder.

Open Tc2r1 opened this issue 2 years ago • 1 comments

Add Method to request Json Information for a language in the languages folder.

Skill Level: Easy

  1. Navigate to [MODULE]/repository.tc2rgithubrepository.source.remote.Tc2rGithubService

  2. Add a request method to get both the Answers.json and Questions.json from a missing language folder so that application may have a way of retrieving information for more than one type of quiz.

Example:

@GET("Tc2r1/DevInterview_Questions/master/Languages/Android/answers.json")
suspend fun requestAndroidAnswers(): Response<AnswersResponse>

// Gets answers objects
@GET("Tc2r1/DevInterview_Questions/master/Languages/Android/questions.json")
suspend fun requestAndroidQuestionsJson(): Response<QuestionsResponse>


### Optionally: 
Additionally create the methods that will evoke these calls. 

Tc2r1 avatar Oct 24 '22 03:10 Tc2r1

This issue has been assigned to @Shrikant-Wankhade! It will become unassigned if it isn't closed within 7 days. A maintainer can also add the Pinned label to prevent it from being unassigned.

github-actions[bot] avatar Oct 24 '22 07:10 github-actions[bot]