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

[back-2425] Light weight APi #12

Merged
merged 5 commits into from
Apr 4, 2024
Merged

[back-2425] Light weight APi #12

merged 5 commits into from
Apr 4, 2024

Conversation

erikreppel
Copy link
Contributor

  • create list and submit endpoints
  • router can be extended by others with custom routes with mintpool is used as a lib

})
.collect();
Ok(premints)
list_all(&self.db).await
}

pub async fn get_for_id(&self, id: String) -> eyre::Result<PremintTypes> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was thinking about this earlier. I believe we'll need to remove the version from the id and make it a separate field of the metadata. Otherwise it'll be really hard to query for an existing premint when we get an update. Not for this PR necessarily, just wanted to put it out there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good call out

@erikreppel erikreppel merged commit 28e36f4 into main Apr 4, 2024
2 checks passed
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