Skip to content

Commit

Permalink
changed method to post
Browse files Browse the repository at this point in the history
  • Loading branch information
DDH13 committed Apr 15, 2024
1 parent cc05715 commit 0170a21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adapter/internal/oasparser/model/adapter_internal_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ func (adapterInternalAPI *AdapterInternalAPI) SetInfoGRPCRouteCR(grpcRoute *gwap
resourcePath := adapterInternalAPI.GetXWso2Basepath() + "." + *match.Method.Service + "/" + *match.Method.Method
endPoints = append(endPoints, GetEndpoints(backendName, resourceParams.BackendMapping)...)
resource := &Resource{path: resourcePath, pathMatchType: "Exact",
methods: []*Operation{{iD: uuid.New().String(), method: string(*match.Method.Type), policies: policies,
methods: []*Operation{{iD: uuid.New().String(), method: "post", policies: policies,
auth: apiAuth, rateLimitPolicy: parseRateLimitPolicyToInternal(resourceRatelimitPolicy), scopes: scopes}},
iD: uuid.New().String(),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class ResourceConfig {
*/
public enum HttpMethods {
GET("get"), POST("post"), PUT("put"), DELETE("delete"), HEAD("head"),
PATCH("patch"), OPTIONS("options"), QUERY("query"), MUTATION("mutation"), EXACT("Exact"),
PATCH("patch"), OPTIONS("options"), QUERY("query"), MUTATION("mutation"),
SUBSCRIPTION("subscription");

private String value;
Expand Down

0 comments on commit 0170a21

Please sign in to comment.