feat(example-contact-hub): implement REST CRUD endpoints and ObjectUri retrieval #7
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core#7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of parent story #4.
🎯 Goal
Expose REST CRUD endpoints for contacts and tasks, demonstrating zero-boilerplate routing and ObjectUri resolution.
📋 Specification
@quatrain/api-server-expresswithCrudEndpoint(Contact)andCrudEndpoint(TaskItem).ObjectUriretrieval:contacts/cnt-101returns record withuri.literal: 'sqlite:contacts/cnt-101'.TaskItem.repository().query(query.filter('contact', contact.uri)).PostgresAdapterwithout touching any endpoints.