Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.simple.clinic.sync.DataPushResponse
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Query

Expand All @@ -14,6 +15,7 @@ interface CVDRiskSyncApi {
@Body body: CVDRiskPushRequest
): Call<DataPushResponse>

@Headers(value = ["X-RESYNC-TOKEN: 1"])
@GET("v4/cvd_risks/sync")
fun pull(
@Query("limit") recordsToPull: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.simple.clinic.sync.DataPushResponse
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Query

Expand All @@ -14,6 +15,7 @@ interface PatientAttributeSyncApi {
@Body body: PatientAttributePushRequest
): Call<DataPushResponse>

@Headers(value = ["X-RESYNC-TOKEN: 1"])
@GET("v4/patient_attributes/sync")
fun pull(
@Query("limit") recordsToPull: Int,
Expand Down
Loading