Skip to content

Commit

Permalink
[#4031] Add get_objecttype to client
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Apr 3, 2024
1 parent aa8cce3 commit 7dbc779
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/openforms/contrib/objects_api/clients/objecttypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ def list_objecttypes(
page_size=page_size,
)

def get_objecttype(
self,
objecttype_uuid: str | UUID,
) -> dict[str, Any]:
response = self.get(f"objecttypes/{objecttype_uuid}")
response.raise_for_status()
return response.json()

def list_objecttype_versions(
self,
objecttype_uuid: str | UUID,
Expand Down

0 comments on commit 7dbc779

Please sign in to comment.