mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-29 11:09:54 +00:00
13 lines
295 B
Python
13 lines
295 B
Python
|
"""OpenAPI core paths models module"""
|
||
|
|
||
|
|
||
|
class Path(object):
|
||
|
"""Represents an OpenAPI Path."""
|
||
|
|
||
|
def __init__(self, name, operations):
|
||
|
self.name = name
|
||
|
self.operations = dict(operations)
|
||
|
|
||
|
def __getitem__(self, http_method):
|
||
|
return self.operations[http_method]
|