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

Expose rest mappings in documentation #441

Open
josephjclark opened this issue Mar 18, 2024 · 1 comment
Open

Expose rest mappings in documentation #441

josephjclark opened this issue Mar 18, 2024 · 1 comment

Comments

@josephjclark
Copy link
Contributor

Every datasource we interact with exposes a REST API. It's fair to expect that developers who know that datasource will be familar with that API.

And almost every adaptor function maps to one or more endpoints in that API.

It would likely be helpful for our docs to expose that mapping. So you want to write job code to to create a new sObject, you'll be expecting to post to salesforce.com/services/data/v60.0/sobjects/whatever. Maybe that URL - or part of it - should be listed in the docs.

Something like this:

image

We should support an @Map jsdoc tag so that adaptor functions can declare the endpoints they map to.

/**
 * @map POST https://{domain}.my.salesforce.com/services/data/v60.0/sobjects/{object}
 */
@josephjclark
Copy link
Contributor Author

josephjclark commented Mar 18, 2024

An alternative to this would be to:

  • Allow an adaptor to declare a list of arbitrary tags (create, sObject)
  • Show tags in the adaptor docs and provide some kind of navigation (filter by tag maybe? Or list by tag?)

I suppose it depends on how focused on the URL might be. Maybe the tags [create] and [sobject] are all you need?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant