Tc2r1 / Dev_Interview_Prep_App

This is an Open Sourced Programming Quiz Project to help people practice for interviews. We are redesigning the application for use with all languages. Open for help!
Other
50 stars 53 forks source link

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

Open Tc2r1 opened 1 year ago

Tc2r1 commented 1 year ago

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. 
prasad-333 commented 1 year ago

Adds request calls for all quiz languages for native-kotlin-retrofit module #167