Skip to content
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

Harmonisation de l'API #14

Open
brrd opened this issue Feb 19, 2023 · 0 comments
Open

Harmonisation de l'API #14

brrd opened this issue Feb 19, 2023 · 0 comments

Comments

@brrd
Copy link
Owner

brrd commented Feb 19, 2023

  1. Les arguments sont nommés ou anonymes selon la méthode, ce qui n'est pas logique.
  2. La forme du paramètre data n'est pas identique partout. Certaines méthodes utilisent la forme field: value, d'autres la forme data[field]: value.

Exemple (deux en un) :

await session.createPublication({ idParent: 0, idType: 12, data: { "titre": "Foo bar" } });

await session.editIndex(123, "entries", { "data[definition]": "Foo bar" });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant