I am trying to Make PUT request to craete project in azure migrate with spring boot .Previously i was doing with Rest Template. Like @Autowire RestTemplate template;
HttpHeaders headers = new HttpHeaders(); headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);
MultiValueMap<String, String> map = new LinkedMultiValueMap<>();
map.add("grant_type", assessment.getGrant_type());
map.add("client_id", assessment.getClient_id());
map.add("client_secret", assessment.getClient_secret());
map.add("code", authToken);
HttpEntity<MultiValueMap<String, String>> request = new HttpEntity<MultiValueMap<String, String>>(map, headers);
ResponseEntity<String> response = restTemplate.exchange(baseUrl, HttpMethod.POST, request, String.class);
authToken i am getting making separate GET call to Authentication URL previous to POST call and setting in POST header.
I am posting partial code so that you can get an idea what i am doing.
Now i have been asked to use Azure-sdk for java to write the same code. I need not to use Rest Template.Can anybody tell me how can i make POST call using Azure-sdk for java classes.I search on google and you tube but nothing concrete found.
Regards, Prabhash Mishra