Skip to content

Commit

Permalink
[#513] update openapi spec
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA committed Jan 10, 2025
1 parent 70fd9e3 commit 26b3037
Showing 1 changed file with 115 additions and 1 deletion.
116 changes: 115 additions & 1 deletion src/objecttypes/api/v2/openapi.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Objecttypes API
version: 2.2.2
version: 3.0.0
description: |+
An API to manage Object types.
Expand Down Expand Up @@ -111,6 +111,25 @@ paths:
/objecttypes/{objecttype_uuid}/versions:
get:
operationId: objectversion_list
description: |-
Abstract base class for generic types.
A generic type is typically declared by inheriting from
this class parameterized with one or more type variables.
For example, a generic mapping type might be defined as::
class Mapping(Generic[KT, VT]):
def __getitem__(self, key: KT) -> VT:
...
# Etc.
This class can then be used as follows::
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
try:
return mapping[key]
except KeyError:
return default
parameters:
- in: path
name: objecttype_uuid
Expand Down Expand Up @@ -144,6 +163,25 @@ paths:
description: OK
post:
operationId: objectversion_create
description: |-
Abstract base class for generic types.
A generic type is typically declared by inheriting from
this class parameterized with one or more type variables.
For example, a generic mapping type might be defined as::
class Mapping(Generic[KT, VT]):
def __getitem__(self, key: KT) -> VT:
...
# Etc.
This class can then be used as follows::
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
try:
return mapping[key]
except KeyError:
return default
parameters:
- in: header
name: Content-Type
Expand Down Expand Up @@ -179,6 +217,25 @@ paths:
/objecttypes/{objecttype_uuid}/versions/{version}:
get:
operationId: objectversion_read
description: |-
Abstract base class for generic types.
A generic type is typically declared by inheriting from
this class parameterized with one or more type variables.
For example, a generic mapping type might be defined as::
class Mapping(Generic[KT, VT]):
def __getitem__(self, key: KT) -> VT:
...
# Etc.
This class can then be used as follows::
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
try:
return mapping[key]
except KeyError:
return default
parameters:
- in: path
name: objecttype_uuid
Expand Down Expand Up @@ -208,6 +265,25 @@ paths:
description: OK
put:
operationId: objectversion_update
description: |-
Abstract base class for generic types.
A generic type is typically declared by inheriting from
this class parameterized with one or more type variables.
For example, a generic mapping type might be defined as::
class Mapping(Generic[KT, VT]):
def __getitem__(self, key: KT) -> VT:
...
# Etc.
This class can then be used as follows::
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
try:
return mapping[key]
except KeyError:
return default
parameters:
- in: header
name: Content-Type
Expand Down Expand Up @@ -250,6 +326,25 @@ paths:
description: OK
patch:
operationId: objectversion_partial_update
description: |-
Abstract base class for generic types.
A generic type is typically declared by inheriting from
this class parameterized with one or more type variables.
For example, a generic mapping type might be defined as::
class Mapping(Generic[KT, VT]):
def __getitem__(self, key: KT) -> VT:
...
# Etc.
This class can then be used as follows::
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
try:
return mapping[key]
except KeyError:
return default
parameters:
- in: header
name: Content-Type
Expand Down Expand Up @@ -292,6 +387,25 @@ paths:
description: OK
delete:
operationId: objectversion_delete
description: |-
Abstract base class for generic types.
A generic type is typically declared by inheriting from
this class parameterized with one or more type variables.
For example, a generic mapping type might be defined as::
class Mapping(Generic[KT, VT]):
def __getitem__(self, key: KT) -> VT:
...
# Etc.
This class can then be used as follows::
def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT:
try:
return mapping[key]
except KeyError:
return default
parameters:
- in: path
name: objecttype_uuid
Expand Down

0 comments on commit 26b3037

Please sign in to comment.