Tuesday, 8 December 2015

Do you know versioning in REST? How to implement it in Rest Web Service.

http://thereisnorightway.blogspot.in/2011/02/versioning-and-types-in-resthttp-api.html
http://www.infoq.com/news/2010/06/rest-versioning
http://stackoverflow.com/questions/10742594/versioning-rest-api


@Controller
@Scope("request")
@RequestMapping(value = "/v1/questions")
public class QuestionsController {

@Autowired
@Qualifier("QuestionsService")
private IQuestionsService iQuestionsService;

public QuestionsController() {
System.out
.println("@_@__@)))))))))))))))))((((((((((((((((((((((((((((((((((((((((((((((((((((((");
}

@RequestMapping(value = "/auth", method = RequestMethod.GET, produces = {
"application/json", "application/xml" })
public @ResponseBody
UserForm findUserById(
@RequestParam(value = "userid", required = false) String userid) {

  }
}

No comments:

Post a Comment