-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODEXPW-548 Changed display format of stat codes
- Loading branch information
1 parent
f6adce2
commit 5847aa1
Showing
8 changed files
with
101 additions
and
4 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
src/main/java/org/folio/dew/client/StatisticalCodeTypeClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.folio.dew.client; | ||
|
||
import org.folio.dew.config.feign.FeignClientConfiguration; | ||
import org.folio.dew.domain.dto.StatisticalCodeType; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
|
||
@FeignClient(name = "statistical-code-types", configuration = FeignClientConfiguration.class) | ||
public interface StatisticalCodeTypeClient { | ||
|
||
@GetMapping(value = "/{id}", produces = MediaType.APPLICATION_JSON_VALUE) | ||
StatisticalCodeType getById(@PathVariable String id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"mappings": [ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "/statistical-code-types/3abd6fc2-b3e4-4879-b1e1-78be41769fe3" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"body": "{\n \"id\": \"3abd6fc2-b3e4-4879-b1e1-78be41769fe3\",\n \"name\": \"Code Type 1 (CD)\",\n \"source\": \"UC\",\n \"metadata\": {\n \"createdDate\": \"2022-03-15T01:50:23.674+00:00\",\n \"updatedDate\": \"2022-03-15T01:50:23.674+00:00\"\n }\n}", | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"url": "/statistical-code-types/1d51c4da-0d5f-4303-a922-3e9d7a9b22f3" | ||
}, | ||
"response": { | ||
"status": 404, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} | ||
] | ||
} |