MCPcopy Create free account
hub / github.com/StackStorm/st2 / help

Method help

st2api/st2api/controllers/v1/actionalias.py:102–120  ·  view source on GitHub ↗

Get available help strings for action aliases. Handles requests: GET /actionalias/help

(self, filter, pack, limit, offset, **kwargs)

Source from the content-addressed store, hash-verified

100 }
101
102 def help(self, filter, pack, limit, offset, **kwargs):
103 """
104 Get available help strings for action aliases.
105
106 Handles requests:
107 GET /actionalias/help
108 """
109 try:
110 aliases_resp = super(ActionAliasController, self)._get_all(**kwargs)
111 aliases = [ActionAliasAPI(**alias) for alias in aliases_resp.json]
112 return generate_helpstring_result(
113 aliases, filter, pack, int(limit), int(offset)
114 )
115 except (TypeError) as e:
116 LOG.exception(
117 "Helpstring request contains an invalid data type: %s.",
118 six.text_type(e),
119 )
120 return abort(http_client.BAD_REQUEST, six.text_type(e))
121
122 def post(self, action_alias, requester_user):
123 """

Callers

nothing calls this directly

Calls 4

ActionAliasAPIClass · 0.90
abortFunction · 0.90
_get_allMethod · 0.45

Tested by

no test coverage detected