Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joecars/nermanapi

API for communities using Nerman's governance data
https://github.com/joecars/nermanapi

Last synced: 11 days ago
JSON representation

API for communities using Nerman's governance data

Awesome Lists containing this project

README

        

# Nerman API

An API to query data stored by Nerman Discord.

## Endpoints

- **`GET /`:** Returns a list of user statistics for users eligible to vote in the most recent Nouncil poll.
```json
[
{
"userId": "362737590430072862",
"votesEligible": 435,
"votesParticipated": 388,
"participationRate": 89.19540229885058 // A percentage. 0 to 100
},
//...
]
```

- **`GET /:discordId`:** Returns the statistics of the user, if they are eligible to vote in the most recent Nouncil poll.
```json
{
"userId": "362737590430072862",
"votesEligible": 435,
"votesParticipated": 388,
"participationRate": 89.19540229885058 // A percentage. 0 to 100
}
```