This repo provide a simple callback cache service.
spring.redis.host=localhost
spring.redis.port=6379
spring.redis.password=In project directory, use maven command:
$uname mvn clean compile packageIf there is build success, Then the package echo.service.api-0.0.1.jar will be in target directory.
Copy echo.service.api-0.0.1.jar to your deploy directory. then use jar command to run this spring boot application.
$uname java -jar echo.service.api-0.0.1.jarHTTP: POST
URL: /api/1/ela_echo/{app_id}/{traceid}
HEADERS:
Content-Type: application/json
data: post data
return:
成功: {
"status":200,
}
失败: {"status":400, "result":"Err msg"}HTTP: GET
URL: /api/1/ela_echo/{app_id}/{traceid}
HEADERS:
Content-Type: application/json
data: post data
return:
成功: {
"data": post data
"status":200,
}
失败: {"status":400, "result":"Err msg"}