public class Main { public static void main(String[] args) { HttpResponse httpResponse = Unirest.post("http://localhost:3000/") .body("{\"id\": \"33\"}").asJson(); System.out.println(httpResponse.getBody());
} }
и есть само api
var express = require('express'); var bodyParser = require('body-parser'); var app = express(); var jsonParser = bodyParser.json()