Skip to content

Commit

Permalink
Updated v1/EventShort and v1/Article query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
s1g53gv committed Jan 25, 2024
1 parent c2bbf5f commit 2301f61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import retrofit2.http.*
interface OpendatahubApiService {
@GET("v1/EventShort")
suspend fun getEvents(
@Query("onlyactive") onlyActive: Boolean = true,
@Query("removenullvalues") removeNullValues: Boolean = true,
@Query("optimizedates") optimizeDates: Boolean = true,
@Query("eventlocation") eventLocation: String = "NOI",
@Query("pagenumber") pageNumber: Int = 1,
@Query("pagesize") pageSize: Int = 20,
@Query("startdate") startDate: String,
@Query("enddate") endDate: String? = null,
@Query("rawfilter") rawFilter: String?
@Query("rawfilter") rawFilter: String?,
@Query("publishedon") publishedOn: String? = "noi-communityapp",
): EventsResponse

@GET("v1/EventShort/Detail/{id}")
Expand All @@ -40,15 +40,15 @@ interface OpendatahubApiService {

@GET("v1/Article")
suspend fun getNews(
@Query("odhactive") onlyActive: Boolean = true,
@Query("removenullvalues") removeNullValues: Boolean = true,
@Query("articletype") endDate: String = "newsfeednoi",
@Query("rawsort") rawFilter: String = "-ArticleDate",
@Query("fields") fields: String = "Id,ArticleDate,Detail,ContactInfos,ImageGallery,ODHTags",
@Query("pagesize") pageSize: Int,
@Query("pagenumber") pageNumber: Int,
@Query("startdate") startDate: String,
@Query("language") language: String?
@Query("language") language: String?,
@Query("publishedon") publishedOn: String? = "noi-communityapp",
): NewsResponse

@GET("v1/Article/{id}")
Expand Down

0 comments on commit 2301f61

Please sign in to comment.