Skip to content

Commit e4d5787

Browse files
AS-3064: Adapt the /import/bpu endpoint to work with Custom Connector.
1 parent 929ab77 commit e4d5787

File tree

1 file changed

+2
-2
lines changed
  • farms-api/farms-api-rest-endpoints/src/main/java/ca/bc/gov/farms/api/rest/v1/endpoints

1 file changed

+2
-2
lines changed

farms-api/farms-api-rest-endpoints/src/main/java/ca/bc/gov/farms/api/rest/v1/endpoints/ImportEndpoints.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ public interface ImportEndpoints {
1313

1414
@POST
1515
@Path("/bpu/{fileName}")
16-
@Consumes(MediaType.MULTIPART_FORM_DATA)
17-
@Produces({ MediaType.TEXT_PLAIN })
16+
@Consumes(MediaType.TEXT_PLAIN)
17+
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })
1818
Response importBPU(@PathParam("fileName") String fileName,
1919
String fileContent) throws Exception;
2020
}

0 commit comments

Comments
 (0)