Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
corteza
corteza-server
Commits
0a5179ed
Commit
0a5179ed
authored
6 years ago
by
Tit Petric
Browse files
Options
Download
Email Patches
Plain Diff
update specs docs for autogen
parent
13b22759
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
3 deletions
+57
-3
sam/docs/src/spec.json
sam/docs/src/spec.json
+12
-3
sam/docs/src/spec/organisation.json
sam/docs/src/spec/organisation.json
+15
-0
sam/docs/src/spec/team.json
sam/docs/src/spec/team.json
+15
-0
sam/docs/src/spec/user.json
sam/docs/src/spec/user.json
+15
-0
No files found.
sam/docs/src/spec.json
View file @
0a5179ed
...
...
@@ -8,9 +8,12 @@
"struct"
:
[
{
"name"
:
"Organisation"
,
"imports"
:
[
"time"
],
"fields"
:
[
{
"name"
:
"ID"
,
"type"
:
"uint64"
},
{
"name"
:
"Name"
,
"type"
:
"string"
}
{
"name"
:
"Name"
,
"type"
:
"string"
},
{
"type"
:
"*time.Time"
,
"name"
:
"ArchivedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
},
{
"type"
:
"*time.Time"
,
"name"
:
"DeletedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
}
]
}
],
...
...
@@ -77,11 +80,14 @@
"struct"
:
[
{
"name"
:
"Team"
,
"imports"
:
[
"time"
],
"fields"
:
[
{
"type"
:
"uint64"
,
"name"
:
"ID"
},
{
"type"
:
"string"
,
"name"
:
"Name"
},
{
"type"
:
"[]uint64"
,
"name"
:
"MemberIDs"
,
"tag"
:
"json:
\"
-
\"
"
,
"complex"
:
true
},
{
"type"
:
"[]User"
,
"name"
:
"Members"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
}
{
"type"
:
"[]User"
,
"name"
:
"Members"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
},
{
"type"
:
"*time.Time"
,
"name"
:
"ArchivedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
},
{
"type"
:
"*time.Time"
,
"name"
:
"DeletedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
}
]
}
],
...
...
@@ -360,10 +366,13 @@
"struct"
:
[
{
"name"
:
"User"
,
"imports"
:
[
"time"
],
"fields"
:
[
{
"type"
:
"uint64"
,
"name"
:
"ID"
},
{
"type"
:
"string"
,
"name"
:
"Username"
},
{
"type"
:
"[]byte"
,
"name"
:
"Password"
,
"tag"
:
"json:
\"
-
\"
"
}
{
"type"
:
"[]byte"
,
"name"
:
"Password"
,
"tag"
:
"json:
\"
-
\"
"
},
{
"type"
:
"*time.Time"
,
"name"
:
"SuspendedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
},
{
"type"
:
"*time.Time"
,
"name"
:
"DeletedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"complex"
:
true
}
]
}
],
...
...
This diff is collapsed.
Click to expand it.
sam/docs/src/spec/organisation.json
View file @
0a5179ed
...
...
@@ -13,8 +13,23 @@
{
"name"
:
"Name"
,
"type"
:
"string"
},
{
"complex"
:
true
,
"name"
:
"ArchivedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"type"
:
"*time.Time"
},
{
"complex"
:
true
,
"name"
:
"DeletedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"type"
:
"*time.Time"
}
],
"imports"
:
[
"time"
],
"name"
:
"Organisation"
}
],
...
...
This diff is collapsed.
Click to expand it.
sam/docs/src/spec/team.json
View file @
0a5179ed
...
...
@@ -25,8 +25,23 @@
"name"
:
"Members"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"type"
:
"[]User"
},
{
"complex"
:
true
,
"name"
:
"ArchivedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"type"
:
"*time.Time"
},
{
"complex"
:
true
,
"name"
:
"DeletedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"type"
:
"*time.Time"
}
],
"imports"
:
[
"time"
],
"name"
:
"Team"
}
],
...
...
This diff is collapsed.
Click to expand it.
sam/docs/src/spec/user.json
View file @
0a5179ed
...
...
@@ -17,8 +17,23 @@
"name"
:
"Password"
,
"tag"
:
"json:
\"
-
\"
"
,
"type"
:
"[]byte"
},
{
"complex"
:
true
,
"name"
:
"SuspendedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"type"
:
"*time.Time"
},
{
"complex"
:
true
,
"name"
:
"DeletedAt"
,
"tag"
:
"json:
\"
,omitempty
\"
"
,
"type"
:
"*time.Time"
}
],
"imports"
:
[
"time"
],
"name"
:
"User"
}
],
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment