Skip to content

Commit

Permalink
Convert UAT route to GET from POST
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Martinak committed Apr 9, 2020
1 parent 7c814ed commit 222e529
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package com.braintree.braintreep4psamplemerchant;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.*;

@org.springframework.web.bind.annotation.RestController
public class RestController {
Expand All @@ -18,7 +15,7 @@ public RestController(OrdersV2Client ordersV2Client, PayPalTokenClient payPalTok
this.payPalTokenClient = payPalTokenClient;
}

@PostMapping(path = "/uat")
@GetMapping(path = "/uat")
UniversalAccessToken getUat(@RequestParam(value = "countryCode") String countryCode) {
System.out.println("******************************");
System.out.println("REQUEST to /v1/oauth2/token:");
Expand Down

0 comments on commit 222e529

Please sign in to comment.