Skip to content

Commit

Permalink
Prepare working prototype which demonstrates oxTrust API #784
Browse files Browse the repository at this point in the history
  • Loading branch information
dmogn committed Dec 8, 2017
1 parent 1a13722 commit e3a53bd
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -6,6 +6,7 @@
package org.gluu.oxtrust.api.saml;

import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
Expand All @@ -22,11 +23,12 @@
* @author Dmitry Ognyannikov
*/
@Path("/saml/tr")
@Consumes({ MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN })
public class TrustRelationshipWebService {
//TODO

@GET
@Path("/read/{inum}/")
@Path("/read/{inum}")
@Produces(MediaType.APPLICATION_JSON)
public String read(@PathParam("inum") String inum) {
String result = null;
Expand All @@ -44,23 +46,23 @@ public String create() {
}

@PUT
@Path("/update/{inum}/")
@Path("/update/{inum}")
@Produces(MediaType.TEXT_PLAIN)
public String update(@PathParam("inum") String inum) {
//TODO
return OxTrustConstants.RESULT_SUCCESS;
}

@DELETE
@Path("/delete/{inum}/")
@Path("/delete/{inum}")
@Produces(MediaType.TEXT_PLAIN)
public String delete(@PathParam("inum") String inum) {
//TODO
return OxTrustConstants.RESULT_SUCCESS;
}

@GET
@Path("/list/")
@Path("/list")
@Produces(MediaType.APPLICATION_JSON)
public String list() {
String list = null;
Expand Down

0 comments on commit e3a53bd

Please sign in to comment.