Skip to content

Commit

Permalink
Merge pull request #36 from azrael8576/fix/incorrect_api_parameter
Browse files Browse the repository at this point in the history
Update pagination parameter name from 'perPage' to 'per_page' in Pixabay API interface
  • Loading branch information
azrael8576 authored Dec 19, 2023
2 parents e850812 + 84f2ca2 commit 6a19543
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface RetrofitPixabayApi {
@Query("q") query: String,
@Query("image_type") imageType: String = "photo",
@Query("page") page: Int,
@Query("perPage") perPage: Int,
@Query("per_page") perPage: Int,
// Add more parameters as needed
): NetworkSearchImages

Expand All @@ -43,7 +43,7 @@ interface RetrofitPixabayApi {
@Query("q") query: String,
@Query("video_type") videoType: String = "film",
@Query("page") page: Int,
@Query("perPage") perPage: Int,
@Query("per_page") perPage: Int,
// Add more parameters as needed
): NetworkSearchVideos
}
Expand Down

0 comments on commit 6a19543

Please sign in to comment.