Skip to content

Is there a way to generate an api for a pre-existing custom resource. #636

Answered by clux
empath-nirvana asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, that is possible. You can use one of the Api constructors with the _with suffix for dynamic types. You would have to supply it with dynamic type information typically through ApiResource (either manually or through the discovery module).

There are some relevant examples on the examples folder starting with dynamic_ that would both be relevant here :-)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by clux
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Direction unclear; possibly a bug, possibly could be improved.
3 participants
Converted from issue

This discussion was converted from issue #625 on September 21, 2021 15:26.