Commit 927c907
committed
feat(deploy): migrate proxy and types to data.go.kr API v2 (#63)
The public-data-portal endpoint moved to v2 with a renamed base path
and per-resource _v2 suffixes. Update the proxy and the consumers in
the same PR so the Route Handler delivered in the previous commit
keeps working end-to-end.
Route Handler upstream URL:
- http://apis.data.go.kr/1543061/abandonmentPublicSrvc
+ https://apis.data.go.kr/1543061/abandonmentPublicService_v2
(now also HTTPS, matching the v2 spec at data.go.kr/data/15098931)
new-api path constants (all five callers):
- /abandonmentPublic → /abandonmentPublic_v2
- /sido → /sido_v2
- /sigungu → /sigungu_v2
- /kind → /kind_v2
- /shelter → /shelter_v2
shared-types AnimalInfo:
- popfile (single Image URL) → popfile1 (required) plus optional
popfile2..popfile8. The v2 schema returns up to 8 image URLs per
rescue notice; we only render the first today, but the optional
fields are typed for the gallery work in #18 e2e / future ports.
apps/web AnimalCard.tsx:
- item.popfile → item.popfile1
- nx affected -t lint test build --exclude web-e2e green
Refs #631 parent 828920a commit 927c907
8 files changed
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
59 | 66 | | |
60 | 67 | | |
61 | 68 | | |
| |||
0 commit comments