def create(self, *args, **kwargs):
        """Adds created http status response and location link."""
        resource = super(JsonServerResource, self).create(*args, **kwargs)

        return ResourceResult(
            body=resource,
            status=get_http_status_code_value(http.client.CREATED),
            location="{}/{}".format(request.url, resource.get_id())
        )
def create ( self , * args , ** kwargs ) : resource = super ( JsonServerResource , self ) . create ( * args , ** kwargs ) return ResourceResult ( body = resource , status = get_http_status_code_value ( http . client . CREATED ) , location = "{}/{}" . format ( request . url , resource . get_id ( ) ) )
Adds created http status response and location link.