Commit 1008b458 by Thomas Bosch

register example app

parent 93141a7b
package de.codecentric;
import org.springframework.web.client.RestTemplate;
import de.codecentric.model.Application;
public class RegisterExampleApp {
public static void main(String[] args) {
RestTemplate template = new RestTemplate();
Application app = new Application();
app.setId("app");
app.setUrl("http://localhost:8081");
template.postForObject("http://localhost:8080/api/applications", app, String.class);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment