B4J Question Rest Http connection

Ormente

Member
Licensed User
Longtime User
I'm not an expert, but i would say it is.
Whatever tool you use to write a server, it's only the way you map URLs to your handlers that make your API (more or less) RESTful.
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
someone has an example ? API restfull developed with b4j thank you
 
Last edited:
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

may be of use = recently explored communicating with openHAB (Home Automation) via the openHAB REST API - see here and as part of my B4J HowTos Project Examples:
114. TinkerForge openHAB REST API Example IO-16 Bricklet (20160223) - Download B4J Project.

The communication is basically done using the standard HTTP methods (with the B4J Libraries jhttputils2 and jhttp), e.g. define the URL and then httpjob.download (=get) and http.poststring or putstring. Use the jobdone event to work the result.
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User


thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…