Comments (4)
Thanks, I've just confirmed the behaviour changes locally. Since the format of the response has not changed, it should be completely compatible with the code that processes the response. I'll try to code the changes today.
from python-fmrest.
Good point. Do you know about any official documentation regarding this?
I had a quick look into the Data API code and it seems they added some undocumented routes like /fmi/data/<version>/refreshLicense
that don't work with v1. However, for a v1 to v2 change I would assume some actual changes, not just additional endpoints. I couldn't find anything while skimming over it. Do you have an overview / know an official statement or would we need to figure this out ourselves?
from python-fmrest.
The only differences I was able to spot are:
- Get a single record, the structure for returned portal data: https://help.claris.com/en/data-api-guide/content/get-single-record.html
- Get a range of records, again, structure for returned portal data: https://help.claris.com/en/data-api-guide/content/get-range-of-records.html
- Perform a find request, again, structure for returned portal data: https://help.claris.com/en/data-api-guide/content/perform-find-request.html
It seems these are no longer depending on the view setting (Form View or Table View), but are now always based on the Form View.
I believe implementation could be done with:
- e.g. a Set in
const.py
, likeAPI_VERSIONS = {'v1', 'v2', 'vLatest'}
- replacing the hard coded
'v1'
with'{version}'
for all end points - in
server.py
addAPI_VERSIONS
tofrom .const import ...
- in
Server.__init__
addversion: str
, and later onself.version = version if version in API_VERSIONS else "v1"
, this way it defaults to the currently hard coded version (or mightvLatest
be preferable?) - Finally, in all methods, as appropriate, add
version = self.version,
to string formatting (in order of appearance in the end points), e.g.:
API_PATH['xxxxx'].format(
version = self.version,
database=self.database,
layout=self.layout,
record_id=record_id
)
from python-fmrest.
Thank you! And Happy Easter!
from python-fmrest.
Related Issues (20)
- SSL version issue on Windows HOT 1
- Help with class Server login HOT 3
- Similar queries yield different foundset HOT 3
- How to display results of find dynamically into a template? HOT 6
- How do you handle errors like you want to find a records but the record is not existing? HOT 1
- additional info on data types and their formats when creating records HOT 5
- Digital Signature HOT 3
- Retrieve a list of all available databases hosted on FMS HOT 2
- Displaying object in django template from portal
- New tag/release? HOT 2
- Question: How do you create multiple records inside the portal? Portal inside the layout is a related record. Thanks! Please see the attached image for the reference HOT 10
- botocore notauthorizedexception when deploying CloudServer on Heroku HOT 1
- FileMaker server version > 17 in README HOT 1
- How to specify layout name? HOT 2
- Issue: Connection Pool
- edit_record() returning Filemaker Error 101, though the record is accessible by using find() HOT 1
- Server instance destructor error after connection error HOT 5
- Question - How to access messages array when creating record HOT 2
- Question: can I use python-fmrest to acceess data in a local .fmp12? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-fmrest.