Jump to content
Sign in to follow this  
ggt667

FMPXMLRESULT to route node for ExpressJS

Recommended Posts

fmpxmlresult2nodeexpress

This is an XSLT stylesheet to convert from FileMaker's fmpxmlresult to JSON route node for ExpressJS, no records involved.

Fieldnames as parameters; use a layout to limit the amount of fields used. I used a slightly modified version of this script to generate 280 nodes in the same API.

 

When it comes to naming of the API I always use singular for nodes that are able to manipulate data, and plural for reports that risk responding with more than 1 record.

 

car by :id will usually have full CRUUx/CRUD implementation and return 0 or 1 items

http://localhost/api/car/1234

 

Showing which cars are parked in a specific car park can return anything from 0 to n

http://localhost/api/cars/?park=12

 

https://github.com/TyrfingMjolnir/fmpxmlresult2nodeexpress/

Edited by ggt667

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.