Skip to content

rest protocol definition #8

Description

@petr-tik

As suggested by @jbcoe in FFIG/ffig#77,
The API will receive and send the following JSON:

request:

{
  "translation_unit": "class A { int x_; public: int getX() const { return x_; } void setX(int x) { x_ = x; } };",
  "bindings": ["ruby", "python"],
  "module": "TestModule"
}

response:

{
  "TestModule.py" : " ... ",
  "TestModule.rb" : " ... ",
  "TestModule_c.cpp" : " ... ",
  "TestModule_c.h" : " ... "
}

I was thinking, it's better to make separate requests for each binding.

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions