Skip to Content
0
May 28, 2019 at 08:43 AM

By default oData version is v4 in CAP node project

942 Views

I'm trying to create Odata service using CAP (nodeJS) and by default oData version is coming as V4 and not V2 even though cds env set for v2:

INLM50938888A:techApp i073642$ cds env
build.target = .
build.tasks = [ { for: 'node-cf', src: 'srv', options: { model: [Array] } } ]
features.localized = true
folders.app = app
folders.db = db
folders.srv = srv
i18n.default_language = en
i18n.folders = [ '_i18n', 'i18n', 'assets/i18n' ]
mtx.api.model = true
mtx.api.provisioning = true
mtx.domain = default
odata.version = v2
requires.db.credentials.database = techAPP.db
requires.db.kind = sqlite
requires.db.model = [ 'db', 'srv' ]
sql_mapping = plain

metadata headers
connection →keep-alive
content-length →66647
content-type →application/xml
date →Tue, 28 May 2019 07:25:17 GMT
etag →W/"VGAHNDOlmFoFD6MHH63mUIi269FvPCSF/ieYoryJb3k="
odata-version →4.0
x-powered-by →Express

Could you please help with how to switch the oData version to V2.