Jaseci-Labs / jaclang

The Jac Programming Language
https://www.jac-lang.org
22 stars 21 forks source link

Auto API Generation #207

Closed chandralegend closed 8 months ago

chandralegend commented 9 months ago

This is something that goes along with the plugin.

Problem with Jaseci v1 Approach of API generation

Possibile Implementation For a jac file if we have included the jac plugin auto_api. Every walker , ability will become an API endpoint.

include:plugin auto_api;
include:plugin from auto_api, ignore;

can test1;
@ignore
can test2;

Above code will create only one API Endpoint (test1) and test2 will not be made.

marsninja commented 9 months ago

Love this, will save for roadmap.

marsninja commented 8 months ago

Btw, I think it would be best to leverage the public/private/protected access modifiers to do this. We'll need to pass this info through the make_arch interface. And need to add one for abilities.

This is a note to self and perhaps @amadolid

ypkang commented 8 months ago

Close this for now and we will revisit when we have a v1 of the jaseci stack.