Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gva-api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Cédric Moreau
gva-api
Commits
aa4ddc26
Commit
aa4ddc26
authored
5 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
[enh] Add README
parent
f97b4324
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+81
-0
81 additions, 0 deletions
README.md
with
81 additions
and
0 deletions
README.md
0 → 100644
+
81
−
0
View file @
aa4ddc26
# Setup
## Prérequis
*
NodeJS 9
## Installation
### Dépendances
yarn
### Synchronisation Ğ1
node index.js sync g1.duniter.org
## Usage
node index.js gva
L'IHM est alors consultable à l'adresse http://localhost:15000/graphql
## Exemples de requêtes
### hello
```
json
{
hello
}
```
```
json
{
"data"
:
{
"hello"
:
"Welcome to Duniter GVA API."
}
}
```
### block(number)
```
json
{
block(number:
0
)
{
number
currency
membersCount
}
}
```
```
json
{
"data"
:
{
"block"
:
{
"number"
:
0
,
"currency"
:
"g1"
,
"membersCount"
:
59
}
}
}
```
## API
Dans GraphQLi, dans le menu en haut à droite "Docs > Query" se situe la liste des opérations possibles actuelles.
```
hello: String
currency: String!
block(number: Int): Block
member(uid: Stringpub: String): Identity
pendingIdentities(search: String): [PendingIdentity!]!
pendingIdentityByHash(hash: String!): PendingIdentity
pendingTransactions: [Transaction!]!
transactionByHash(hash: String!): Transaction
transactionsOfIssuer(issuer: String!): [Transaction!]!
transactionsOfReceiver(receiver: String!): [Transaction!]!
sourcesOfPubkey(pub: String!): [Source!]!
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment