MCPcopy Index your code
hub / github.com/OpenFeign/feign / json

Method json

form/src/test/java/feign/form/Server.java:108–119  ·  view source on GitHub ↗
(@RequestBody Dto dto)

Source from the content-addressed store, hash-verified

106 }
107
108 @PostMapping(path = "/json", consumes = APPLICATION_JSON_VALUE)
109 public ResponseEntity<String> json(@RequestBody Dto dto) {
110 HttpStatus status;
111 if (!dto.getName().equals("Artem")) {
112 status = CONFLICT;
113 } else if (!dto.getAge().equals(11)) {
114 status = I_AM_A_TEAPOT;
115 } else {
116 status = OK;
117 }
118 return ResponseEntity.status(status).body("ok");
119 }
120
121 @PostMapping("/query_map")
122 public ResponseEntity<Integer> queryMap(@RequestParam("filter") List<String> filters) {

Callers

nothing calls this directly

Calls 4

bodyMethod · 0.65
equalsMethod · 0.45
getNameMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected