Skip to content

Commit a20f299

Browse files
fostersethpb82
andauthored
Add x-ai-description to schema (#16186)
Adding ansible_base.api_documentation to the INSTALL_APPS which extends the schema to include an LLM-friendly description to each endpoint --------- Signed-off-by: Seth Foster <[email protected]> Co-authored-by: Peter Braun <[email protected]>
1 parent 4f41b50 commit a20f299

File tree

14 files changed

+504
-0
lines changed

14 files changed

+504
-0
lines changed

awx/api/generics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,6 +1023,9 @@ class GenericCancelView(RetrieveAPIView):
10231023
# In subclass set model, serializer_class
10241024
obj_permission_type = 'cancel'
10251025

1026+
def get(self, request, *args, **kwargs):
1027+
return super(GenericCancelView, self).get(request, *args, **kwargs)
1028+
10261029
@transaction.non_atomic_requests
10271030
def dispatch(self, *args, **kwargs):
10281031
return super(GenericCancelView, self).dispatch(*args, **kwargs)

0 commit comments

Comments
 (0)