Skip to content

Commit bb21220

Browse files
committed
Fix API key fetch resource configuration
1 parent 11a401d commit bb21220

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app/src/main/java/org/galaxyproject/sampletracker/model/galaxy/authenticate/AuthenticateResponse.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
package org.galaxyproject.sampletracker.model.galaxy.authenticate;
22

3+
import com.google.gson.annotations.SerializedName;
4+
35
import org.galaxyproject.sampletracker.model.galaxy.AbstractResponse;
46

57
/**
68
* Model of response to an authentication request.
7-
*
9+
*
810
* @author Pavel Sveda <[email protected]>
911
*/
1012
public final class AuthenticateResponse extends AbstractResponse {
1113

12-
private String key;
14+
@SerializedName("api_key") private String key;
1315

1416
public String getKey() {
1517
return key;

app/src/main/java/org/galaxyproject/sampletracker/net/galaxy/resource/AuthenticateResource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
import retrofit.Callback;
66
import retrofit.RestAdapter;
7+
import retrofit.http.GET;
78
import retrofit.http.Header;
8-
import retrofit.http.POST;
99

1010
/**
1111
* {@link RestAdapter} resource for authentication.
@@ -14,6 +14,6 @@
1414
*/
1515
public interface AuthenticateResource {
1616

17-
@POST("/api/authenticate/baseauth")
17+
@GET("/api/authenticate/baseauth")
1818
void authenticate(@Header("Authorization") String authorization, Callback<AuthenticateResponse> callback);
1919
}

0 commit comments

Comments
 (0)