User guide for setup?
Hi,
Do you have a user guide for installation and setup ? such as how to connect to the API. I can start front-end and back-end service, but have no idea how to make the CodeX connect to the API.
Great thanks.
Hi, ysun
Sorry for the late reply
I set up CoedX-API locally
git clone https://github.com/Jaagrav/CodeX-API
docker build --no-cache -t codex-api .
docker run -p 3000:3000 codex-api
in my case after running the the CodeX-API container, i implemented an HTTP GET request to a REST endpoint with RestTemplate.
String basicUrl = config.getUrl(); // http://172.xx.xx.xx:3000/ String url = basicUrl + "list";
RestTemplate restTemplate = new RestTemplate(); HttpHeaders headers = new HttpHeaders(); MediaType mediaType = new MediaType("application", "json", Charset.forName("UTF-8")); headers.setContentType(mediaType); HttpEntity<String> entity = new HttpEntity<>(headers); CompileApiGetVO response = restTemplate.exchange( url, HttpMethod.GET, entity, CompileApiGetVO.class ).getBody();te.exchange(url, HttpMethod.GET, entity, CompileApiGetVO.class).getBody();
Reference: https://github.com/Jaagrav/CodeX-API/blob/master/SETUP.md