Web API Template 2.0?

Which features are you most anticipating?


  • Total voters
    13

aeric

Expert
Licensed User
Longtime User
Do you enjoy my Web API template and Web API Client template?

I wanted to make B4X more popular by making it possible to quickly create an API server in just seconds!

After I published my version 1 of Web API, I saw some members are interested and like this project. I also received a donation from @Mashiane. After that, I haven't received much comments about it. I am thinking there must be issues with this project.

There are many programming languages such as PHP, Python, Ruby, .NET, Java, NodeJS to name a few; to make the API backend server. Are they more superior in many ways?

Would you be interested if I create a new version which is near to production use? Would more people donate or sponsor to this project?

I have mentioned about project EndsMeet where it is targeted as a front-end and back-end framework which will be my ultimate goal. If I create a new version of Web API then it will contribute a lot to this ambitious project.

My plan of Web API template 2.0 is:
✔️1. Add the User and Password handlers as available in jAPI project
✔️2. Add File Upload handler
✔️3. Improve Help handler
✔️4. Demonstrate how to integrate the API backend with other front-end framework such as Vue, Angular, React
✔️5. Basic Authentication
✔️6. Use JSON Web Token (JWT)
✔️7. Use Mini ORM (Object Relational Mapper)
✔️8. More cleaner and configurable server startup
✔️9. More simpler routing in custom handler
⏳10. Scaffold a custom handler using an external tool
⏳11. Add a database migration class
✔️12. Add function to create a “plain” JSON response
✔️13. A guide or tutorial on how to use
✔️14. Add an Admin page for manage user profile, access token and models (CRUD)

( Legends: ✔️=Done ⚒️= Working in progress ⏳= Not started )

Please give your opinion. Thanks!
 
Last edited:

serro efe

Member
Licensed User
Longtime User
Maybe it is not very relevant to the subject, but there may be an additional tool that automatically creates a template crud for the created database. At least for basic queries. He can write the queries to be added later.
It speeds up work and process.
 

aeric

Expert
Licensed User
Longtime User
Maybe it is not very relevant to the subject, but there may be an additional tool that automatically creates a template crud for the created database. At least for basic queries. He can write the queries to be added later.
It speeds up work and process.
There are already many tools or ways to create database. In version 1 of Web API, database is created from the ini text script. In web development, where framework is used, developer sometimes use code first approach. Personally I still prefer database first. Reason to use framework to scaffold database model is we don’t need to use the additional tools. See my Help handler which acts like Swagger so developer does not need to use Postman for quick test. And the list of API is auto generated.
 

aeric

Expert
Licensed User
Longtime User
10. Scaffold a custom handler using an external tool

11. Add a database migration class

10. What I want to mean is create a jar using B4J and call from B4J IDE or command line tools to create a server handler.

11. About the database migration, how this is done I have not decided but the concept is inspired from Django or Laravel.
 

dw_b4x

Member
I think would be a great idea.
I like the fact that you are looking a security.
I think that is one area that ideas and examples would be extremely helpful.
Additional database tools and examples would be beneficial to the B4X community.
 

Unobtainius

Active Member
Licensed User
Longtime User
Awesome ideas to make the web API even better.
If you add the token handling then it stops being a toy and really turns in to a tool.
 

hibrid0

Active Member
Licensed User
Longtime User
Nice idea. I think that is a part needed on b4x ecosystem.
Something like command line tool to add fields and generate the db and b4x basic structure.
 

virpalacios

Active Member
Licensed User
Longtime User
Hi, I agree with fellows, every tool to make b4x an easer tool for web development will be very appreciatted. Best Regards
 

peacemaker

Expert
Licensed User
Longtime User
to quickly create an API server in just seconds
IMHO, for this the code should have a wizard:
  • CRUD-ing the database structure quickly
  • to clone the ready db into a new one, and next make some changes, with renaming fields in tables... easily
  • to have the API that is ready to work (maybe with simple setup) with any just prepared db structure
 

yashwant

Member
Licensed User
Longtime User
Great Idea...,
I have used your web API version 1, it help me to save my time and focused on the business need.
 

aeric

Expert
Licensed User
Longtime User
IMHO, for this the code should have a wizard:
  • CRUD-ing the database structure quickly
  • to clone the ready db into a new one, and next make some changes, with renaming fields in tables... easily
  • to have the API that is ready to work (maybe with simple setup) with any just prepared db structure
This will be achieve using the Mini ORM class. I am still improving this class.
7. Use Mini ORM (Object Relational Mapper)
 

aeric

Expert
Licensed User
Longtime User
Do you have a Patreon account or other in order to sponsor this project?
No, I only have a PayPal account. Do you think I should create a Patreon account?
How about Sponsor in Github? Not sure how it works.
 

chikega

Member
Licensed User
I sponsor a few projects on GitHub, Patreon and Open Collective. Setting up an account looks fairly straightforward. This video is about setting up a Patreon account.
 

aeric

Expert
Licensed User
Longtime User
I sponsor a few projects on GitHub, Patreon and Open Collective. Setting up an account looks fairly straightforward. This video is about setting up a Patreon account.
My concern is I don't have much content to share regularly. If people sponsor me in my youtube and I don't upload a video once a week at least, it makes me feel like I am not a responsible person.

Is Patreon also support developers in github projects?
 

aeric

Expert
Licensed User
Longtime User
A teaser:

1661766813943.png
 

Attachments

  • 1661767325344.png
    1661767325344.png
    49.3 KB · Views: 221
Top