The following table shows the method of our previously created classes that we want to be executed for each combination of HTTP verb and scope:
HTTP verb |
Scope |
Class and method |
GET |
Collection of notifications |
NotificationListResource.get |
GET |
Notification |
NotificationResource.get |
POST |
Collection of notifications |
NotificationListResource.post |
PATCH |
Notification |
NotificationResource.patch |
DELETE |
Notification |
NotificationResource.delete |
GET |
Collection of notification categories |
NotificationCategoryListResource.get |
GET |
Notification category |
NotificationCategoryResource.get |
POST |
Collection of notification categories |
NotificationCategoryListResource.post |
PATCH |
Notification category |
NotificationCategoryResource.patch |
DELETE |
Notification category |
NotificationCategoryResource... |