Skip to content

Conversation

@edescalona
Copy link

@BinhexTeam

A new source has been added for API use.

Main features:

  1. Define the base URL and endpoint.
  2. Allows you to add the token directly to the resource.
  3. Allows you to obtain the token from a model-field combination.
  4. Allows you to obtain the token from a model-function combination.
  5. Add headers.
  6. Add parameters.

@edescalona edescalona force-pushed the 17.0-add-connector_importer_api branch 2 times, most recently from 655af83 to c83b29f Compare May 15, 2025 05:14
@edescalona edescalona marked this pull request as ready for review May 15, 2025 05:17
@edescalona
Copy link
Author

Ready for review

@edescalona edescalona force-pushed the 17.0-add-connector_importer_api branch from c83b29f to e52ca44 Compare June 3, 2025 16:01
@edescalona edescalona force-pushed the 17.0-add-connector_importer_api branch 4 times, most recently from 1fdf31b to a212344 Compare June 13, 2025 03:39
[FIX] connector_importer_api: Resolve conflict

[IMP] connector_importer_api: Change name file views. Edit import source api

[IMP] onnector_importer_api: Generate parameter values ​​dynamically.
@edescalona edescalona force-pushed the 17.0-add-connector_importer_api branch from a212344 to ae5b01c Compare July 4, 2025 22:53
adasatorres added a commit to BinhexTeam/connector-interfaces that referenced this pull request Jul 21, 2025
enviroment_url = fields.Char(string="Enviroment URL", required=True)
type_request = fields.Selection(
string="Request type",
selection=[("get", "GET")],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not include the POST method as one of the options for the type_request field?

Suggested change
selection=[("get", "GET")],
selection=[("get", "GET"), ("post", "POST")],

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @adasatorres , thanks for your comments. Initially, the POST type was not added because it was not necessary for the initial requirement, but it can still be extended and all possible types can be added and the necessary configurations made.

adasatorres added a commit to BinhexTeam/connector-interfaces that referenced this pull request Jul 24, 2025
from odoo.addons.component.core import Component


class Tracker(Component):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the purpose of this override?

@simahawk
Copy link
Contributor

I'm not sure to understand how this is supposed to work. Also, you say "token" everywhere but is not clear what it should represent.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants