Skip to content
Snippets Groups Projects
Commit 3f921dcc authored by BEAUVAIS ANTOINE's avatar BEAUVAIS ANTOINE
Browse files

Changed /api/v1/retrieveAll to /api/v1/retrieveItems.

parent 1b616b01
1 merge request!8Merge 'develop' into 'master'.
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
...@@ -48,7 +48,7 @@ public class WebMvcConfig implements WebMvcConfigurer { ...@@ -48,7 +48,7 @@ public class WebMvcConfig implements WebMvcConfigurer {
* API Mapping for retrieving all items. * API Mapping for retrieving all items.
*/ */
public static final String MAPPING_RETRIEVEALL = API_FULL_PREFIX + public static final String MAPPING_RETRIEVEALL = API_FULL_PREFIX +
"/retrieveAll"; "/retrieveItems";
/** /**
* API Mapping for retrieving all categories. * API Mapping for retrieving all categories.
......
...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -24,7 +24,7 @@ import org.springframework.web.bind.annotation.RestController;
* @author BEAUVAIS ANTOINE * @author BEAUVAIS ANTOINE
*/ */
@RestController @RestController
public class ApiRetrieveInfoController implements IRetrieveInfoController { public class ApiRetrieveItemsController implements IRetrieveInfoController {
/** /**
* Returns all products as a JSON response. * Returns all products as a JSON response.
...@@ -42,7 +42,7 @@ public class ApiRetrieveInfoController implements IRetrieveInfoController { ...@@ -42,7 +42,7 @@ public class ApiRetrieveInfoController implements IRetrieveInfoController {
try { try {
db = DatabaseSystem.getInstance(); db = DatabaseSystem.getInstance();
} catch (DatabaseConnectionException ex) { } catch (DatabaseConnectionException ex) {
Logger.getLogger(ApiRetrieveInfoController.class.getName()).log( Logger.getLogger(ApiRetrieveItemsController.class.getName()).log(
Level.SEVERE, "Could not connect to database.", ex); Level.SEVERE, "Could not connect to database.", ex);
throw new ApiServerErrorException("Database failure."); throw new ApiServerErrorException("Database failure.");
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment