Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: API for deals tracked per allocator #196

Merged
merged 3 commits into from
Aug 8, 2024
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Aug 8, 2024

  • deps: upgrade spark-api to latest
  • feat: API for deals tracked per allocator

Example request:

GET /allocator/f03015751/deals/eligible/summary

Example response:

{
  "allocatorId": "f03019831",
  "dealCount": 117596,
  "clients": [
    {
      "clientId": "f02056762",
      "dealCount": 64674
    },
    {
      "clientId": "f03146638",
      "dealCount": 21405
    }
  ]
}

Links:

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Example request:

```
GET /allocator/f03015751/deals/eligible/summary
```

Example response:

```json
{
  "allocatorId": "f03019831",
  "dealCount": 117596,
  "clients": [
    {
      "clientId": "f02056762",
      "dealCount": 64674
    },
    {
      "clientId": "f03146638",
      "dealCount": 21405
    }
  ]
}
```

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
@bajtos bajtos merged commit 1fb4ae1 into main Aug 8, 2024
10 checks passed
@bajtos bajtos deleted the feat-allocator-deals branch August 8, 2024 09:33
@bajtos
Copy link
Member Author

bajtos commented Aug 8, 2024

@juliangruber hindsight please 🙏🏻

Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

bajtos added a commit to filecoin-station/spark-api that referenced this pull request Sep 2, 2024
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants