Currently syson uses the same value of uuid for different types of entities.
Using the same UUID for different objects is generally not considered a good practice as it may cause significant issues with data integrity, searching, and identification.
Get projects:
ProjectId is the same as defaultBranch id:
[
{
"@id": "011048f3-8e83-4572-9110-1ca19cd711b0",
"@type": "Project",
"created": "1970-01-01T00:00:00Z",
"defaultBranch": {
"@id": "011048f3-8e83-4572-9110-1ca19cd711b0"
},
"description": null,
"name": "SysMLv2-Library"
},
{
"@id": "3e919478-6f75-4083-acff-48d145b45b14",
"@type": "Project",
"created": "1970-01-01T00:00:00Z",
"defaultBranch": {
"@id": "3e919478-6f75-4083-acff-48d145b45b14"
},
"description": null,
"name": "SysMLv2"
},
{
"@id": "c0253543-e587-48e3-b761-15fb95f607f6",
"@type": "Project",
"created": "1970-01-01T00:00:00Z",
"defaultBranch": {
"@id": "c0253543-e587-48e3-b761-15fb95f607f6"
},
"description": null,
"name": "Batmobile"
}
]
Get project commits:
CommitID is the same as owningProjectID
[
{
"@id": "c0253543-e587-48e3-b761-15fb95f607f6",
"@type": "Commit",
"created": "1970-01-01T00:00:00Z",
"description": "The one and only commit for this project",
"owningProject": {
"@id": "c0253543-e587-48e3-b761-15fb95f607f6"
},
"previousCommits": []
}
]
Currently syson uses the same value of uuid for different types of entities.
Using the same UUID for different objects is generally not considered a good practice as it may cause significant issues with data integrity, searching, and identification.
Get projects:
ProjectId is the same as defaultBranch id:
[
{
"@id": "011048f3-8e83-4572-9110-1ca19cd711b0",
"@type": "Project",
"created": "1970-01-01T00:00:00Z",
"defaultBranch": {
"@id": "011048f3-8e83-4572-9110-1ca19cd711b0"
},
"description": null,
"name": "SysMLv2-Library"
},
{
"@id": "3e919478-6f75-4083-acff-48d145b45b14",
"@type": "Project",
"created": "1970-01-01T00:00:00Z",
"defaultBranch": {
"@id": "3e919478-6f75-4083-acff-48d145b45b14"
},
"description": null,
"name": "SysMLv2"
},
{
"@id": "c0253543-e587-48e3-b761-15fb95f607f6",
"@type": "Project",
"created": "1970-01-01T00:00:00Z",
"defaultBranch": {
"@id": "c0253543-e587-48e3-b761-15fb95f607f6"
},
"description": null,
"name": "Batmobile"
}
]
Get project commits:
CommitID is the same as owningProjectID
[
{
"@id": "c0253543-e587-48e3-b761-15fb95f607f6",
"@type": "Commit",
"created": "1970-01-01T00:00:00Z",
"description": "The one and only commit for this project",
"owningProject": {
"@id": "c0253543-e587-48e3-b761-15fb95f607f6"
},
"previousCommits": []
}
]