PUT module¶
-
class
methods.PUT.
PUT
¶ Bases:
object
-
static
getIdOfUrl
(URI) → int¶ Return the id value present in the URL
- Parameters
URI – String of the url
- Returns
The id value
-
static
response
(request) → str¶ Performs an update when there is a PUT request, returning a response with the headers and the correct body. Updates the selected object within the database, based on the received ID.
- Parameters
request – Request object, containing the body and headers of that request
- Returns
The answer to this request
-
static