[GitHub] [cxf] dmitrytsybulko commented on a change in pull request #580: CXF-8121 Improve STS REST interface

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[GitHub] [cxf] dmitrytsybulko commented on a change in pull request #580: CXF-8121 Improve STS REST interface


dmitrytsybulko commented on a change in pull request #580:
URL: https://github.com/apache/cxf/pull/580#discussion_r459375583

File path: services/sts/sts-rest/src/main/java/org/apache/cxf/sts/rest/api/BaseResponse.java
@@ -0,0 +1,80 @@
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.sts.rest.api;
+import java.io.Serializable;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+ * Base class for STS REST interface responses
+ */
+@XmlType(name = "BaseResponse", propOrder = {
+        "status",
+        "message"
+@XmlRootElement(name = "BaseResponse")
+public class BaseResponse implements Serializable {

Review comment:
       The idea was to use this class for futher improvements of the STS REST interface. To return more "beautiful" REST responses instead the responses that now are return from STS core

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]