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



Field NameTypeMandatoryUniqueIndexedDescription
accessBoolean or Array
%environment_name%ObjectNONONO
apisPermissionString



Field NameTypeMandatoryUniqueIndexedDescription
%service_name%ObjectNONONO
apis



Field NameTypeMandatoryUniqueIndexedDescription
%version_name%ObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
%apiRoute%ObjectYES
accessBooleanNONONO
apiPermissionStringNONONO

"enum": ["restricted"]

get - post - put - putArrayNONONO



Field NameTypeMandatoryUniqueIndexedDescription
access
groupStringNONONO

apis

ObjectNONONO
packages



Field NameTypeMandatoryUniqueIndexedDescription
%api%ObjectNONONO
Packages in product



Field NameTypeMandatoryUniqueIndexedDescription
%packageName%
accessBooleanNONONO










packagesObjectNONONO

Packages in product




Field NameTypeMandatoryUniqueIndexedDescription
packageNameObjectNONONO
codeStringNONONOPackage Code
nameStringNONONO

Package Name

DescriptionStringNONONOPackage Description
aclObjectNONONO



Field NameTypeMandatoryUniqueIndexedDescription
apis
%environment_name%ObjectYESYESNO



Field NameTypeMandatoryUniqueIndexedDescription
%service_name%ObjectNOYESNO



Field NameTypeMandatoryUniqueIndexedDescription
%apiRoute%
version
Object
StringYESNONO
%http_verb%ArrayYESNONo



Field NameTypeMandatoryUniqueIndexedDescription
access
%group_name%
Object
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 test"this is a description for test 2 product",
	console: false,
	scopepackages: [
		{
			aclcode: {"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: "package 1				post: [
								"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)
		}
	]
}