Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Database NameDatabase TypeCollection Name
%tenant_code%_multitenantMongoDBproducts


Record Explanation

...


Field NameTypeMandatoryUniqueIndexedDescription

_idMongo IDYESYESYESMongo Record ID

codeStringYESYESYESProduct Code

nameStringYESNONOProduct Name

descriptionStringNONONOProduct Description

scopeObjectNONONOProduct ACL and permission



Field NameTypeMandatoryUniqueIndexedDescription
aclObjectNONONO
packagesObjectNONONOPackages in product




Field NameTypeMandatoryUniqueIndexedDescription
%environment_name%ObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
%service_name%ObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
%version_name%ObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
accessBooleanNONONO
apiPermissionStringNONONO

"enum": ["restricted"]

get - post - put - putArrayNONONO



Field NameTypeMandatoryUniqueIndexedDescription
groupStringNONONO

apis

ObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
%api%ObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
%packageName%
accessBooleanNONONO










packagesObjectNONONO

Packages in product




Field NameTypeMandatoryUniqueIndexedDescription
packageNameObjectNONONO
codeStringNONONOPackage Code
nameStringNONONO

Package Name

DescriptionStringNONONOPackage Description
aclObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
%environment_name%ObjectYESYESNO



Field NameTypeMandatoryUniqueIndexedDescription
%service_name%ObjectNOYESNO



Field NameTypeMandatoryUniqueIndexedDescription
versionStringYESNONO
%http_verb%ArrayYESNONo



Field NameTypeMandatoryUniqueIndexedDescription
%group_name%StringNONONO






 Sample

...

The below Product has two packages. package 1 and PACK 2

Code Block
languagejs
titleRecord Sample
{
	_id: ObjectId("5d65150fb151143ec5f41d2d5d779088f13f2c08f8cdc034"),
	code: "OTHERTEST2",
	name: "AnotherTest 2 OneProduct",
	description: "Another Product to testthis is a description for test 2 product",
	scope: console: false,
	packages: [
		{
		acl	code: {"TEST2_NEWS",
			devname: {
	 "news package",
			description: "this is a description for test 2 product news package",
			uracacl: {
					"2"dashboard: {
						accessoauth: false[
					}	{
							}version: "1",
			}
		}
	},
	packagesget: [
					{
			code: "OTHER_PACK1",
"Guest"
							],
					name		post: [
"package 1								"Guest",
					description: "package 1",			"Tokenization"
			acl: {
				dev: {
],
							uracdelete: [
						{		"Tokenization"
							version: "2"
]
						}
					]
				}
			},
			_TTL: NumberInt(2160000086400000)
		},
		{
			code: "OTHERTEST2_PACK2NEW",
			name: "PACK2new package",
			description: "PACK2this is a description for test 2 product new package",
			acl: {
				devdashboard: {
					urac: [
						{
							version: "2",
							post: [
								"Guest Password Settings"
							],
							get: [
								"Guest Password Settings",
								"Guest Email Validation"
							]
						}
					]
				}
			},
			_TTL: NumberInt(2160000086400000)
		}
	]
}