mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
2ab6381a94
Included in the changes: - create a new /api root package to hold all API code, migrate /graphql in there - git API handlers all use the cache instead of the repo directly - git API handlers are now tested - git API handlers now require a "repo" mux parameter - lots of untangling of API/handlers/middleware - less code in commands/webui.go
50 lines
1.6 KiB
GraphQL
50 lines
1.6 KiB
GraphQL
|
|
type Repository {
|
|
"""The name of the repository"""
|
|
name: String
|
|
|
|
"""All the bugs"""
|
|
allBugs(
|
|
"""Returns the elements in the list that come after the specified cursor."""
|
|
after: String
|
|
"""Returns the elements in the list that come before the specified cursor."""
|
|
before: String
|
|
"""Returns the first _n_ elements from the list."""
|
|
first: Int
|
|
"""Returns the last _n_ elements from the list."""
|
|
last: Int
|
|
"""A query to select and order bugs."""
|
|
query: String
|
|
): BugConnection!
|
|
|
|
bug(prefix: String!): Bug
|
|
|
|
"""All the identities"""
|
|
allIdentities(
|
|
"""Returns the elements in the list that come after the specified cursor."""
|
|
after: String
|
|
"""Returns the elements in the list that come before the specified cursor."""
|
|
before: String
|
|
"""Returns the first _n_ elements from the list."""
|
|
first: Int
|
|
"""Returns the last _n_ elements from the list."""
|
|
last: Int
|
|
): IdentityConnection!
|
|
|
|
identity(prefix: String!): Identity
|
|
|
|
"""The identity created or selected by the user as its own"""
|
|
userIdentity: Identity
|
|
|
|
"""List of valid labels."""
|
|
validLabels(
|
|
"""Returns the elements in the list that come after the specified cursor."""
|
|
after: String
|
|
"""Returns the elements in the list that come before the specified cursor."""
|
|
before: String
|
|
"""Returns the first _n_ elements from the list."""
|
|
first: Int
|
|
"""Returns the last _n_ elements from the list."""
|
|
last: Int
|
|
): LabelConnection!
|
|
} |