Skip to content

feat: demonstrate natural-key DELETE in example scripts - #2

Open
KicksTV wants to merge 1 commit into
openath:mainfrom
KicksTV:feat/natural-key-delete-examples
Open

feat: demonstrate natural-key DELETE in example scripts#2
KicksTV wants to merge 1 commit into
openath:mainfrom
KicksTV:feat/natural-key-delete-examples

Conversation

@KicksTV

@KicksTV KicksTV commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1 (merged): the natural-key detail endpoints now support DELETE, so the example scripts no longer need to fall back to the generic endpoint.

  • update_competitor.py: creates a throwaway competitor, DELETEs it via the natural-key URL, verifies 404
  • update_events.py: DELETEs via the natural-key URL instead of the generic /api/events/ endpoint (the event is re-created afterwards as before)
  • update_units.py: creates a throwaway event/unit, DELETEs the unit via the natural-key URL, verifies 404

Each DELETE example only ever removes the resource it just created, so the scripts remain repeatable.

The natural-key detail endpoints now support DELETE, so the example
scripts no longer need to fall back to the generic /api/events/ endpoint:

- update_competitor.py: creates a throwaway competitor, DELETEs it via
  the natural-key URL, verifies 404
- update_events.py: DELETEs via the natural-key URL instead of the
  generic endpoint (the event is re-created afterwards as before)
- update_units.py: creates a throwaway event/unit, DELETEs the unit via
  the natural-key URL, verifies 404

Each DELETE example only ever removes the resource it just created, so
the scripts remain repeatable.
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.

1 participant