Resources expose easily understood directory structure URIs.
=item *
Representations transfer JSON or XML to represent data objects and attributes.
=item *
Messages use HTTP methods explicitly (
quested
within an HTTP request. The client may set C<Accept> to C<application/json> if it is requesting a
response in JSON. Conversely, when sending data, setting the C<Content-Type> to
C<application/
ray => 1,
ForceContent => 1,
}
],
json => [
{ # Sserialize
utf8 => 0,
lash
);
use Carp;
use CTK::Util qw/ :BASE :EXT /;
use CTK::ConfGenUtil;
use YAML::XS ();
use JSON::XS ();
use Try::Tiny;
use File::Spec;
# Get (HTTP_ROOT, SERVER_CONFIG_FILE, SERVER_VERSION, APA
} elsif ($metaf =~ /\.json$/) {
try {
my $json_text = CTK::Util::bload($metaf, 1) // "";
$meta = JSON::XS->new->decode($json_text);
} catch
qw/getApache load_metadata/;
use constant {
META_FILES => [qw/MYMETA.yml MYMETA.json META.yml META.json/],
MACRO_KEY => 'x_macro',
OS_TYPES => [qw/
Unix
application/json" http://localhost/%PROJECT_NAMEL%?bar=123
> GET /%PROJECT_NAMEL%?bar=123 HTTP/1.1
> Host: localhost
> User-Agent: curl/7.50.1
> Accept: application/json
>
<
MT
< Server: Apache/2.4.18 (Ubuntu)
< Content-Length: 528
< Content-Type: application/json
<
{
"key" : "GET#/#default",
"uri" : "/%PROJECT_NAMEL%",
"dvars" : {
es:
curl -v --raw http://localhost/%PROJECT_NAMEL%
curl -v --raw -H "Accept: application/json" http://localhost/%PROJECT_NAMEL%
curl -v --raw -H "Accept: application/xml" http://localhost