-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSchoolFeignClient.java
More file actions
19 lines (17 loc) · 930 Bytes
/
SchoolFeignClient.java
File metadata and controls
19 lines (17 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package com.example.schoolapibackend.client;
import com.example.schoolapibackend.config.FeignConfig;
import com.example.schoolapibackend.domain.SchoolInfo;
import com.example.schoolapibackend.dto.SchoolInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(name = "schoolFeignClient", url = "https://open.neis.go.kr/hub", configuration = FeignConfig.class)
public interface SchoolFeignClient {
@RequestMapping(method = RequestMethod.GET, value = "/schoolInfo")
SchoolInfoDto getSchoolInfo(
@RequestParam(value = "KEY") String key,
@RequestParam(value = "Type") String type,
@RequestParam(value = "pIndex") int pIndex,
@RequestParam(value = "pSize") int pSize);
}