diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm index 2c9491150a..b1f4657d4a 100644 --- a/Koha/REST/V1.pm +++ b/Koha/REST/V1.pm @@ -45,7 +45,12 @@ sub startup { }); # Force charset=utf8 in Content-Type header for JSON responses - $self->types->type(json => 'application/json; charset=utf8'); + $self->types->type( json => 'application/json; charset=utf8' ); + # MARC-related types + $self->types->type( marcxml => 'application/marcxml+xml' ); + $self->types->type( mij => 'application/marc-in-json' ); + $self->types->type( marc => 'application/marc' ); + my $secret_passphrase = C4::Context->config('api_secret_passphrase'); if ($secret_passphrase) {