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 12 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 :{},
		"deployment":{}
	},
	"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
}

setting schema

{
	"acl": {},
	"recipes" : [],
	"environments :{},
	"deployment":{
		"token": "ooooo"
	}
}

Data Models


  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.