struct DppmRestApi::Actions::RelativeRoute
- DppmRestApi::Actions::RelativeRoute
- Struct
- Value
- Object
Defined in:
actions/relative_route.crConstructors
Class Method Summary
Instance Method Summary
-
#relative_delete(route : String? = nil, &block : HTTP::Server::Context, Config::User -> )
Perform a relative delete from the
#root_path
. -
#relative_get(route : String? = nil, &block : HTTP::Server::Context, Config::User -> )
Perform a relative get from the
#root_path
. -
#relative_options(route : String? = nil, &block : HTTP::Server::Context, Config::User -> )
Perform a relative options from the
#root_path
. -
#relative_post(route : String? = nil, &block : HTTP::Server::Context, Config::User -> )
Perform a relative post from the
#root_path
. -
#relative_put(route : String? = nil, &block : HTTP::Server::Context, Config::User -> )
Perform a relative put from the
#root_path
. - #root_path : String
Constructor Detail
Class Method Detail
Instance Method Detail
Perform a relative delete from the #root_path
.
That is, these routes are namespaced underneath a route generated by the name
of the type this method is included on. If a route is defined with
delete("/some/:path") { ... }
Then the actual path a request should be made on is
"@root_path/some/path-param"
Perform a relative get from the #root_path
.
That is, these routes are namespaced underneath a route generated by the name
of the type this method is included on. If a route is defined with
get("/some/:path") { ... }
Then the actual path a request should be made on is
"@root_path/some/path-param"
Perform a relative options from the #root_path
.
That is, these routes are namespaced underneath a route generated by the name
of the type this method is included on. If a route is defined with
options("/some/:path") { ... }
Then the actual path a request should be made on is
"@root_path/some/path-param"
Perform a relative post from the #root_path
.
That is, these routes are namespaced underneath a route generated by the name
of the type this method is included on. If a route is defined with
post("/some/:path") { ... }
Then the actual path a request should be made on is
"@root_path/some/path-param"
Perform a relative put from the #root_path
.
That is, these routes are namespaced underneath a route generated by the name
of the type this method is included on. If a route is defined with
put("/some/:path") { ... }
Then the actual path a request should be made on is
"@root_path/some/path-param"