Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Introduction


The following Data Models are used by the Repositories microservice.

The main structure of the item schema is as follow:

{
  	"type": "service | daemon | custom | resource | static | config",
	"name": "itemName",
  	"description": "Item description",
  	"configuration": {
		... //changes based on the type
	},
	"versions" : [
		{
			"version": "1",
			"profile": {
				//free object to add whatever you see fit
			}
			...//changes based on the type
		}
	],
	"metadata": {
		"tags": [],
    	"attributes": {
			"att1": [],
			...//add as much attributes as you want
		},
    	"program": ["ecommerce", ...]
	},
 	"ui": {
		"main": "",
		"sub": ""
	},
	"settings": {
		"acl": {},
		"recipes" : [],
		"environments :{}
	},
	"src": {
		"provider": "github | bitbucket | bitbucket_enterprise | manual",
		...//Changes based on the provider, check below
	},
	"deploy": {
		"dev" : [
			{
				"version": "1"
				...//Check below
			}
		]
	}
}

src schema

// When provider is GIT
"src": {
		"provider": "github | bitbucket | bitbucket_enterprise",
		"owener": "owner name",
		"repo": "repo name"
	},

//When provider is manual
"src": {
		"provider": "manual"
	},


deploy schema

{
	...//changes based on the type
}


Data Models


  • No labels