I have built a Filemaker solution - so far entirely with native Filemaker functions. I am now looking to expand the database's functionality by connecting it to external apps using these apps' API (I'm speaking in general as there are different apps I want to connect to).
However, I have no idea how/where to start. I don't want to outsource this as I really want to learn this, but I have no idea:
- how to set up such an API connection (do I need FM extensions or plugins)?
- whether I will need to learn additional coding languages, and, if so, which ones are recommended?
- any other suggestions you might want to share with an API newbie?
Any pointers in the right direction would be much appreciated. Thank you!
Isabelle
Absolutely!
Just create a small micro-service and you can connect FMP to anything via Java or whatever language you choose. I've written over 100 methods (aka "functions") I use externally with FileMaker. A key benefit of using a micro-service is not only that you can use all the cool, free, debugged, APIs out there, but your micro-service works with other apps as well. And, this is YOUR code, not some third party.
The best news of all is that setting up your own REST services is ridiculously easy and tutorials abound.
SparkJava is probably the easiest Java-based REST service:
1. Get an IDE like Eclipse or Intelilj
2. Create a "maven project" (you'll learn about this incredible tool).
3. Add a single "dependency" to the maven's XML file.
4. The project automatically goes out and downloads the necessary librariess.
5. Write some code!
Check out this tutorial: Spark Framework: An expressive web framework for Kotlin and Java
You can do simple GET requests or POST requests (or PUT, etc.). You can pass simple strings or binary data.
All from FileMaker.