public interface SIDRestServiceClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTENT_TYPE_ACCEPT |
static java.lang.String |
CONTENT_TYPE_HEADER |
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<SessionResponse> |
getCertificate(java.lang.String country,
java.lang.String nationalIdentityNumber,
PostCertificateRequest body) |
retrofit2.Call<SessionResponse> |
getCreateSignature(java.lang.String documentnumber,
PostCreateSignatureRequest body) |
retrofit2.Call<SessionStatusResponse> |
getSessionStatus(java.lang.String sessionId,
long timeoutMs) |
static final java.lang.String CONTENT_TYPE_HEADER
static final java.lang.String CONTENT_TYPE_ACCEPT
@Headers(value={"Content-Type: application/json","Accept: application/json"}) @POST(value="certificatechoice/pno/{country}/{nationalIdentityNumber}") retrofit2.Call<SessionResponse> getCertificate(@Path(value="country",encoded=true) java.lang.String country, @Path(value="nationalIdentityNumber",encoded=true) java.lang.String nationalIdentityNumber, @Body PostCertificateRequest body)
@Headers(value={"Content-Type: application/json","Accept: application/json"}) @POST(value="signature/document/{documentnumber}") retrofit2.Call<SessionResponse> getCreateSignature(@Path(value="documentnumber",encoded=true) java.lang.String documentnumber, @Body PostCreateSignatureRequest body)
@Headers(value={"Content-Type: application/json","Accept: application/json"}) @GET(value="session/{session_id}") retrofit2.Call<SessionStatusResponse> getSessionStatus(@Path(value="session_id",encoded=true) java.lang.String sessionId, @Query(value="timeoutMs") long timeoutMs)