| 1 | |
package com.ctrip.apollo.adminservice.controller; |
| 2 | |
|
| 3 | |
import org.springframework.beans.factory.annotation.Autowired; |
| 4 | |
import org.springframework.http.HttpStatus; |
| 5 | |
import org.springframework.http.ResponseEntity; |
| 6 | |
import org.springframework.web.bind.annotation.RequestBody; |
| 7 | |
import org.springframework.web.bind.annotation.RequestMapping; |
| 8 | |
import org.springframework.web.bind.annotation.RequestMethod; |
| 9 | |
import org.springframework.web.bind.annotation.RestController; |
| 10 | |
|
| 11 | |
import com.ctrip.apollo.biz.service.ItemSetService; |
| 12 | |
import com.ctrip.apollo.core.dto.ItemChangeSets; |
| 13 | |
|
| 14 | |
@RestController |
| 15 | 1 | public class ItemSetController { |
| 16 | |
|
| 17 | |
@Autowired |
| 18 | |
private ItemSetService itemSetService; |
| 19 | |
|
| 20 | |
@RequestMapping(path = "/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/itemset", method = RequestMethod.POST) |
| 21 | |
public ResponseEntity<Void> create(@RequestBody ItemChangeSets changeSet) { |
| 22 | 5 | itemSetService.updateSet(changeSet); |
| 23 | 5 | return ResponseEntity.status(HttpStatus.OK).build(); |
| 24 | |
} |
| 25 | |
} |