Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
fix run endpoint and api call
Browse files Browse the repository at this point in the history
  • Loading branch information
anludke committed Aug 3, 2023
1 parent d9aa549 commit 08ff418
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public WorkReport checkWorkFlowStatus(WorkContext workContext) {
}

try {
String urlString = "%s/api/v1/projects/access/%s".formatted(serviceUrl, accessRequestId);
String urlString = "%s/api/v1/projects/access/%s/status".formatted(serviceUrl, accessRequestId);
ResponseEntity<AccessStatusResponseDTO> responseDTO = RestUtils.restExchange(urlString, serviceUsername,
servicePassword, AccessStatusResponseDTO.class);
if (!responseDTO.getStatusCode().is2xxSuccessful()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
import java.util.List;
import java.util.UUID;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AccessResponseDTO {

private UUID accessRequestId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
import java.util.UUID;

import com.redhat.parodos.project.enums.ProjectAccessStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AccessStatusResponseDTO {

private UUID accessRequestId;
Expand Down

0 comments on commit 08ff418

Please sign in to comment.