Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Compare: RESTful Interface

Showing with 3 additions and 3 deletions.
  1. +3 −3 RESTful-Interface.md
View
6 RESTful-Interface.md
@@ -36,8 +36,8 @@ E.g.
"users" : {
"GET" : "* from #{users}",
"POST" : "into #{users} values ('@{username}', '@{firstname}', '@{lastname}')",
- "PUT/withLastname" : "#{users} set #{firstname} = '@{firstname}', #{lastname} = '@{lastname}' where #{username} = '@{username}'",
- "PUT/noLastname" : "#{users} set #{firstname} = '@{firstname}' where #{username} = '@{username}'",
+ "PUT firstname,lastname,username" : "#{users} set #{firstname} = '@{firstname}', #{lastname} = '@{lastname}' where #{username} = '@{username}'",
+ "PUT firstname,username" : "#{users} set #{firstname} = '@{firstname}' where #{username} = '@{username}'",
"DELETE" : "from #{users} where #{username} = '@{username}'"
},
"users/specific" : {
@@ -55,7 +55,7 @@ E.g.
}
}
-You can multiple entries for the same HTTP verb but they must have different parameters, either names or numbers, or both. The PUT entries in the "users" resource above, have the same names for their parameters but the second one doesn't use the "lastname" parameter. If there are multiple entries for an HTTP verb, which use the same parameters, there is no guarantee which one will be used. If there are multiple entries for a verb, they must each have a single word (ie. no spaces and only alphabetic characters) added after a "/", to make each entry uniquely named, as above.
+You can multiple entries for the same HTTP verb but they must have different parameters, either names or numbers, or both. The PUT entries in the "users" resource above, have the same names for their parameters but the second one doesn't use the "lastname" parameter. If there are multiple entries for an HTTP verb, which use the same parameters, there is no guarantee which one will be used. If there are multiple entries for a verb, they must each have the parameters they are going to use added after the verb in a comma separated list. The order of the parameters does not matter.
You can use sub resources by using the URL "/" separator (see "users/specific" above).
Something went wrong with that request. Please try again.