Permalink
Browse files

Added some docs to clarify model case in requests. Closes #15.

  • Loading branch information...
1 parent 57e6661 commit be4e7eba952d7a72fef00b9ac4e552425609f01c @joestump committed Aug 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.mkd
View
@@ -92,6 +92,8 @@ You can then send a POST to:
* `/ajax/my_app/category/{pk}/get.json` to get the `Category` as specified as `pk`.
* `/ajax/my_app/category/{pk}/delete.json` to delete the `Category` as specified by `pk`.
+**NOTE:** Your Model name (e.g. `category` in the above example) *must* be lowercase. Your request will fail otherwise.
+
### Adding Ad-hoc endpoints to ModelEndpoints
You can also add you own custom methods to a ModelEndpoint. Adhoc methods in a ModelEndpoint observe the same rules as the get(), update() and delete() methods - with the noticable exception that self.pk _may_ not be set.

0 comments on commit be4e7eb

Please sign in to comment.