You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by ji...@apache.org on 2022/09/23 03:13:59 UTC
[rocketmq-schema-registry] branch main updated: [ISSUE #68] Unify the response code 200 if operation success
This is an automated email from the ASF dual-hosted git repository.
jinrongtong pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/rocketmq-schema-registry.git
The following commit(s) were added to refs/heads/main by this push:
new 4c25516 [ISSUE #68] Unify the response code 200 if operation success
4c25516 is described below
commit 4c25516f45ea6e4889001d4181a5b0b81061ff7c
Author: Humkum <50...@users.noreply.github.com>
AuthorDate: Fri Sep 23 11:13:54 2022 +0800
[ISSUE #68] Unify the response code 200 if operation success
---
.../rocketmq/schema/registry/core/api/v1/SchemaController.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/src/main/java/org/apache/rocketmq/schema/registry/core/api/v1/SchemaController.java b/core/src/main/java/org/apache/rocketmq/schema/registry/core/api/v1/SchemaController.java
index 0ad7d60..d69686d 100644
--- a/core/src/main/java/org/apache/rocketmq/schema/registry/core/api/v1/SchemaController.java
+++ b/core/src/main/java/org/apache/rocketmq/schema/registry/core/api/v1/SchemaController.java
@@ -89,7 +89,7 @@ public class SchemaController {
path = "/subject/{subject-name}/schema/{schema-name}",
consumes = MediaType.APPLICATION_JSON_VALUE
)
- @ResponseStatus(HttpStatus.CREATED)
+ @ResponseStatus(HttpStatus.OK)
@ApiOperation(
value = "Register a new schema",
notes = "Return success if there were no errors registering the schema"
@@ -97,7 +97,7 @@ public class SchemaController {
@ApiResponses(
{
@ApiResponse(
- code = HttpURLConnection.HTTP_CREATED,
+ code = HttpURLConnection.HTTP_OK,
message = "The schema was registered"
),
@ApiResponse(
@@ -122,7 +122,7 @@ public class SchemaController {
path = "/cluster/{cluster-name}/tenant/{tenant-name}/subject/{subject-name}/schema/{schema-name}",
consumes = MediaType.APPLICATION_JSON_VALUE
)
- @ResponseStatus(HttpStatus.CREATED)
+ @ResponseStatus(HttpStatus.OK)
@ApiOperation(
value = "Register a new schema",
notes = "Return success if there were no errors registering the schema"
@@ -130,7 +130,7 @@ public class SchemaController {
@ApiResponses(
{
@ApiResponse(
- code = HttpURLConnection.HTTP_CREATED,
+ code = HttpURLConnection.HTTP_OK,
message = "The schema was registered"
),
@ApiResponse(