@@ -0,0 +1,873 @@
+package com.ims.controllers.rest;%0A%0Aimport org.springframework.http.HttpStatus;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport com.ims.domain.Category;%0Aimport com.ims.logic.CategoryLogic;%0A%0A@RestController%0A@RequestMapping(value=%22/category%22)%0Apublic class CategoryAPI %7B%0A%09%0A%09@RequestMapping(method=RequestMethod.GET, value=%22/get-category%22)%0A%09public Category getCategory(int categoryID) %7B%0A%09%09return CategoryLogic.getCategory(categoryID);%0A%09%7D%0A%09%0A%09@RequestMapping(method=RequestMethod.GET, value=%22/get-all-categories%22)%0A%09public ResponseEntity%3CCategory%3E getAllCategories() %7B%0A%09%09CategoryLogic.getAllCategories();%0A%09%09return ResponseEntity.status(HttpStatus.I_AM_A_TEAPOT).body(category);%0A%09%7D%0A%09%09%0A%7D

create CategoryAPI file