-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rest protocol definition #8
Comments
Also, the above spec implies that the client will turn source file into a translation unit. Why not pass the whole source file in the POST request? request:
|
Separate requests for each binding would mean building the clang AST and ffig code model repeatedly, would it not? |
It would and would be best avoided |
What about caching results? |
Seems unnecessary. What are the advantages over the wide REST API as proposed? |
ok. Just to clarify on my second point. From what I understand, the api will receive translation units and I thought it's best to use the whole of FFIG. Send the source file and generate TU on server. what am I missing? |
The user may have some of the headers so will need to locally construct the TU |
What about restricting to standard headers? |
Also, if you want to POST requests with translation units, it would be great to refactor ffig.main, so we can enter it from TU stage. |
If we restrict to standard headers we can take source. Let's get something working first and nuance it later |
As suggested by @jbcoe in FFIG/ffig#77,
The API will receive and send the following JSON:
request:
response:
I was thinking, it's better to make separate requests for each binding.
Thoughts?
The text was updated successfully, but these errors were encountered: