Skip to content

Swagger

Code Examples

fetch('https://sigma.api.test.r3-cloud.com/v1/deployment')
.then(response => response.json())
.then(data => console.log(data));
import requests
r = requests.get('https://sigma.api.test.r3-cloud.com/v1/deployment', auth=('user', 'pass'))
URL url = new URL("https://sigma.api.test.r3-cloud.com/v1/deployment");

// Open a connection(?) on the URL(??) and cast the response(???)
HttpURLConnection connection = (HttpURLConnection) url.openConnection();

// Now it's "open", we can set the request method, headers etc.
connection.setRequestProperty("accept", "application/json");

// This line makes the request
InputStream responseStream = connection.getInputStream();

// Manually converting the response body InputStream to APOD using Jackson
ObjectMapper mapper = new ObjectMapper();
APOD apod = mapper.readValue(responseStream, APOD.class);

// Finally we have the response
System.out.println(apod.title);