Jump to content

FMPXMLRESULT to route node for ExpressJS


ggt667

This topic is 2624 days old. Please don't post here. Open a new topic instead.

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
Link to comment
Share on other sites

This topic is 2624 days old. Please don't post here. Open a new topic instead.

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
×
×
  • Create New...

Important Information

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