mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 18:07:57 +00:00
fix(media-type): fix proxy media-type and openapi patch endpoint (#10763)
This commit is contained in:
parent
79ba0b1720
commit
79ad58268e
@ -155,7 +155,7 @@ public class Application extends Controller {
|
||||
.setBody(
|
||||
new InMemoryBodyWritable(
|
||||
ByteString.fromByteBuffer(request.body().asBytes().asByteBuffer()),
|
||||
"application/json"))
|
||||
request.contentType().orElse("application/json")))
|
||||
.setRequestTimeout(Duration.ofSeconds(120))
|
||||
.execute()
|
||||
.thenApply(
|
||||
|
||||
@ -490,7 +490,7 @@ public abstract class GenericEntitiesController<
|
||||
@Tag(name = "Generic Aspects")
|
||||
@PatchMapping(
|
||||
value = "/{entityName}/{entityUrn:urn:li:.+}/{aspectName}",
|
||||
consumes = "application/json-patch+json",
|
||||
consumes = {"application/json-patch+json", MediaType.APPLICATION_JSON_VALUE},
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@Operation(summary = "Patch an entity aspect. (Experimental)")
|
||||
public ResponseEntity<E> patchAspect(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user