--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-users+unsubscribe@googlegroups.com
Web: http://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Milan,
Do you need:
1. Build your REST server with Harbour
2. Build your clients with Harbour
In case of 1. :
If you need build your REST server with Harbour then check the Harbor contrib for an
https server at https://github.com/vszakats/harbour-core/tree/master/contrib/hbhttpd,
it has already a simple example on how to build your own eshop, with login access,
list of products and your cart, simple and elegant by Mindaugas Kavaliuskas.
In case of 2. ; you can check some examples of using CURL ( contrib/hbcurl ), or you
can build your own using SSL / TCP Harbour libs, I don't have an example of it.
I've already made small modifications to the original contrib/httpd which allows to
make some additional configurations like set supported methods from client, change
the original init/end tokens to pass values from Harbour to html templates ( AngularJS
uses {{ / }} as init/end token separators for html evaluation and pass additional info
to headers to allow CORS without additional tools o libraries.
It already has a example to serve as HTTP REST provider for the AngularJS quick start
tutorial at:
https://angular.io/guide/quickstart
this Harbour HTTP REST example is at:
https://github.com/tfonrouge/harbour-vszakats/blob/master/contrib/hbhttpd/examples/angularHeroesHTTP.prg
HTH,
best regards,
Teo