Skip to content

Conversation

@wtripp180901
Copy link
Contributor

@wtripp180901 wtripp180901 commented Nov 3, 2025

Updated to be REST compliant enough to work with https://github.com/stackhpc/coral-credits-tofu

API changes:

  • GET requests on allocations no longer excludes inactive allocations, as this stops you from being able to allocate credits to a future allocation
  • PATCH requests on credit allocation resources now change the original credits assigned and rather than adding additional credits
  • removed the unique_together constraint for resource_providers in consumers to allow accounts/allocations to be deleted while preserving consumption records
  • Add GET endpoints for consumers (still buggy but not critical)
  • Add protections for destroying resources associated with active consumers
  • Fixed GET requests for allocations and allocation resources
  • Adds endpoints with trailing slashes

@wtripp180901 wtripp180901 changed the title Fix REST API to work with OpenTofu Add OpenTofu config + fix REST API Nov 6, 2025
@wtripp180901 wtripp180901 force-pushed the feat/tofu-api branch 3 times, most recently from 54099e4 to 4010f48 Compare November 19, 2025 11:45
@wtripp180901 wtripp180901 marked this pull request as ready for review November 19, 2025 15:51
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.

3 participants