NAME
Swagger::Schema::Kubernetes - Object model to Kubernetes Swagger / OpenAPI schema files
SYNOPSIS
use File::Slurp;
my $data = read_file($swagger_file);
my $schema = Swagger::Schema::Kubernetes->MooseX::DataModel::new_from_json($data);
# use the object model
say "This API consists of:";
foreach my $path (sort keys %{ $schema->paths }){
foreach my $http_verb (sort keys %{ $schema->paths->{ $path } }) {
say "$http_verb on $path";
}
}
DESCRIPTION
Get programmatic access to Kubenertes Swagger / OpenAPI files.
This module builds upon Swagger::Schema to produce the same object model, enabling access to the extra properties that the Kubernetes swagger definitions adds.
OBJECT MODEL
The object model is defined with MooseX::DataModel. Take a look at the lib/Swagger/Schema/Kubernetes.pm
and lib/Swagger/Schema.pm
files or the swagger spec to know what you can find inside the objects
SEE ALSO
https://github.com/kubernetes/kubernetes/tree/master/api/openapi-spec
https://github.com/OAI/OpenAPI-Specification
AUTHOR
Jose Luis Martinez
CAPSiDE
jlmartinez@capside.com
BUGS and SOURCE
The source code is located here: https://github.com/pplu/swagger-schema-kubernetes
Please report bugs to: https://github.com/pplu/swagger-schema-kubernetes/issues
COPYRIGHT and LICENSE
Copyright (c) 2018 by CAPSiDE
This code is distributed under the Apache 2 License. The full text of the license can be found in the LICENSE file included with this module.