Name : perl-Plack-Middleware-REST
| |
Version : 0.10
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.1.1
| Date : 2023-01-27 18:07:04
|
Group : Development/Libraries/Perl
| Source RPM : perl-Plack-Middleware-REST-0.10-lp154.1.1.src.rpm
|
Size : 0.04 MB
| |
Packager : https://www_suse_com/
| |
Summary : Route PSGI requests for RESTful web applications
|
Description :
Plack::Middleware::REST routes HTTP requests (given in the PSGI manpage request format) on the principles of Representational State Transfer (REST). In short, the application manages a set of resources with common base URL, each identified by its URL. One can retrieve, create, update, delete, list, and patch resources based on HTTP request methods.
Let\'s say an instance of Plack::Middleware::REST is mounted at the base URL \'http://example.org/item/\'. The following HTTP request types can be recognized, once they /CONFIGURATION:
* \'POST http://example.org/item/\'
Calls the PSGI application \'create\' to create a new resource with URL assigned by the application.
* \'GET http://example.org/item/123\'
Calls the application \'get\' to retrieve an existing resource identified by \'http://example.org/item/123\'.
* \'PUT http://example.org/item/123\'
Calls the PSGI application \'upsert\' to either update an existing resource identified by \'http://example.org/item/123\' or to create a new resource with this URL. The application may reject updates and/or creation of new resources, acting like an update or insert method.
* \'DELETE http://example.org/item/123\'
Calls the PSGI application \'delete\' to delete an existing resource identified by \'http://example.org/item/123\'.
* \'GET http://example.org/item/\'
Calls the PSGI application \'list\' to get a list of existing resources.
* \'PATCH http://example.org/item/123\'
Calls the PSGI application \'patch\' to update an existing resource identified by \'http://example.org/item/123\'. The application may reject updates of resources.
* \'OPTIONS http://example.org/item/\'
Calls the PSGI application to return the allowed methods for the resource.
Other requests result either result in a PSGI response with error code 405 and a list of possible request types in the \'Accept\' header, or the request is passed to the underlying application in the middleware stack, if option \'pass_through\' is set.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-P/15.4/noarch |