src/Api/Api.php
public function getDefaultCodec(): Codec
    {
        return $this->factory->createCodec(
            $this->getContainer(),
            $this->encodings->find(MediaTypeInterface::JSON_API_MEDIA_TYPE) ?: Encoding::jsonApi(),
            $this->decodings->find(MediaTypeInterface::JSON_API_MEDIA_TYPE)
        );
    }
public function getDefaultCodec(): Codec
    {
        return $this->factory->createCodec(
            $this->getContainer(),
            $this->encodings->find(MediaTypeInterface::JSON_API_MEDIA_TYPE) ?: Encoding::jsonApi(),
            $this->decodings->find(MediaTypeInterface::JSON_API_MEDIA_TYPE)
        );
    }
Get the default API codec.

@return Codec