'map' => {
'application/x-www-form-urlencoded' => 'JSON',
'application/json' => 'JSON',
- });
+ }
+);
=head1 DESCRIPTION
=cut
-sub update_or_create_objects : POST PUT Chained('objects_no_id') PathPart('') Args(0)
-{
- my ( $self, $c ) = @_;
+sub update_or_create_objects : POST PUT Chained('objects_no_id') PathPart('')
+ Args(0) {
+ my ( $self, $c ) = @_;
$self->update_or_create($c);
}
=cut
-sub delete_many_objects : DELETE Chained('objects_no_id') PathPart('') Args(0)
-{
- my ( $self, $c ) = @_;
+sub delete_many_objects : DELETE Chained('objects_no_id') PathPart('')
+ Args(0) {
+ my ( $self, $c ) = @_;
$self->delete($c);
}
=cut
-sub list_objects : GET Chained('objects_no_id') PathPart('') Args(0)
-{
- my ( $self, $c ) = @_;
+sub list_objects : GET Chained('objects_no_id') PathPart('') Args(0) {
+ my ( $self, $c ) = @_;
$self->list($c);
}
=cut
-sub update_or_create_one_object : POST PUT Chained('object_with_id') PathPart('') Args(0)
-{
- my ( $self, $c ) = @_;
+sub update_or_create_one_object : POST PUT Chained('object_with_id')
+ PathPart('') Args(0) {
+ my ( $self, $c ) = @_;
$self->update_or_create($c);
}
sub delete_one_object : DELETE Chained('object_with_id') PathPart('') Args(0)
{
- my ( $self, $c ) = @_;
+ my ( $self, $c ) = @_;
$self->delete($c);
}
=cut
-sub list_one_object : GET Chained('object_with_id') PathPart('') Args(0)
-{
- my ( $self, $c ) = @_;
+sub list_one_object : GET Chained('object_with_id') PathPart('') Args(0) {
+ my ( $self, $c ) = @_;
$self->item($c);
}