Remove UI leftover and small improvements (#1784)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-07-25 13:47:59 +03:00
committed by GitHub
parent 3189531162
commit 859cd130f2
3 changed files with 12 additions and 10 deletions

View File

@@ -31,8 +31,7 @@ public interface MgmtDownloadRestApi {
*
* @param tenant the download belongs to
* @param downloadId the generated download id
* @return {@link ResponseEntity} with status {@link HttpStatus#OK} if
* successful
* @return {@link ResponseEntity} with status {@link HttpStatus#OK} if successful
*/
@GetMapping(value = MgmtRestConstants.DOWNLOAD_ID_V1_REQUEST_MAPPING_BASE
+ MgmtRestConstants.DOWNLOAD_ID_V1_REQUEST_MAPPING)

View File

@@ -9,10 +9,13 @@
*/
package org.eclipse.hawkbit.mgmt.rest.api;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
/**
* Constants for RESTful API.
*
*/
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class MgmtRestConstants {
/**
@@ -23,7 +26,12 @@ public final class MgmtRestConstants {
/**
* The base URL mapping of the SP rest resources.
*/
public static final String BASE_V1_REQUEST_MAPPING = "/rest/v1";
public static final String BASE_REST_MAPPING = "/rest";
/**
* The base URL mapping of the SP rest resources.
*/
public static final String BASE_V1_REQUEST_MAPPING = BASE_REST_MAPPING + "/v1";
/**
* String representation of
@@ -276,9 +284,4 @@ public final class MgmtRestConstants {
* Request parameter if the artifact url handler should be used
*/
public static final String REQUEST_PARAMETER_USE_ARTIFACT_URL_HANDLER = "useartifacturlhandler";
// constant class, private constructor.
private MgmtRestConstants() {
}
}