You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create basic CRUD restful endpoints for the core entities:
Announcements
Comments
Communities
Instances
People
Posts
PrivateMessages
This means each resource will have a POST, PUT, GET support in the following format:
Create: POST /api/v1/{resource}
Read: GET /api/v1/{resource} & GET /api/v1/{resource}/{id}
Update: PUT /api/v1/{resource}/{id}
Delete: DELETE /api/v1/{resource}/{id}
Do not create and RPC endpoints. For example, instead of adding a moderator to a communtiy like this: POST /api/v1/community/sublinks/addModerator do it like this: POST /api/v1/community/sublinks/moderator. Then create a new Controller for moderators with CRUD actions to create, read, update, and delete moderators from a community. An update for example could change the sort order of moderators.
The text was updated successfully, but these errors were encountered:
Create basic CRUD restful endpoints for the core entities:
This means each resource will have a POST, PUT, GET support in the following format:
Create:
POST /api/v1/{resource}
Read:
GET /api/v1/{resource}
&GET /api/v1/{resource}/{id}
Update:
PUT /api/v1/{resource}/{id}
Delete:
DELETE /api/v1/{resource}/{id}
Do not create and RPC endpoints. For example, instead of adding a moderator to a communtiy like this:
POST /api/v1/community/sublinks/addModerator
do it like this:POST /api/v1/community/sublinks/moderator
. Then create a new Controller for moderators with CRUD actions to create, read, update, and delete moderators from a community. An update for example could change the sort order of moderators.The text was updated successfully, but these errors were encountered: