Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHello again,
This setup seems perfectly valid, several Methods can be defined for a single Resource, using different or the same HTTP verbs. I think a more "natural" mapping would be to have three sub-resources though, Contacts, Invoices and Accounts (as you had before) and then just having multiple Methods below them. This is a matter of taste though, if you find it easier to work with a single Resource then this setup is fine.
Regards,
Dain
eviware.com
This setup seems perfectly valid, several Methods can be defined for a single Resource, using different or the same HTTP verbs. I think a more "natural" mapping would be to have three sub-resources though, Contacts, Invoices and Accounts (as you had before) and then just having multiple Methods below them. This is a matter of taste though, if you find it easier to work with a single Resource then this setup is fine.
Regards,
Dain
eviware.com