-
Notifications
You must be signed in to change notification settings - Fork 0
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: announcements #47
Conversation
"networks": { | ||
"type": "relation", | ||
"relation": "oneToMany", | ||
"target": "api::network.network" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also should be required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or if not specified then it will be displayed in any network?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly! (actually I forgot to mark required 🙈, but I liked the idea)
Will update the notion page with instructions once it's ready.
Summary
Add
Announcement
modelTesting
Local testing via postman/curl, querying the entries with:
http://localhost:1337/api/announcements?populate[networks][fields][0]=chainId&populate[environments][fields][0]=name&fields[0]=text&fields[1]=isCritical
Response: