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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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