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

feat: adapterOptions #510

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mrloop
Copy link

@mrloop mrloop commented Mar 22, 2021

Allows api actions to take an optional options object. If you pass an
object on the adapterOptions property of the options argument it will be
passed to your adapter via the snapshot.

Relies on #506 - this is first commit in this PR. This PR will be easier to review once #506 is merged.

Similar to ember data Store and Model functions, for example
https://api.emberjs.com/ember-data/3.25/classes/Store/methods/findAll?anchor=findAll
https://api.emberjs.com/ember-data/3.25/classes/Model/methods/save?anchor=save

This is similar to #214 with tests.

Closes #214

@sandstrom
Copy link

friendly ping @mike-north @Turbo87 @alexlafroscia

This PR will correctly construct a URL where the ember-api-action path
contains query params and/or where the ember data adapter buildURL
returns a url containing query params.

Fixes mike-north#414
Allows api actions to take an optional `options` object. If you pass an
object on the adapterOptions property of the options argument it will be
passed to your adapter via the snapshot.

Similar to ember data Store and Modal functions, for example
https://api.emberjs.com/ember-data/3.25/classes/Store/methods/findAll?anchor=findAll
https://api.emberjs.com/ember-data/3.25/classes/Model/methods/save?anchor=save

This is similar to mike-north#214 with tests.

Closes mike-north#214
@mrloop mrloop force-pushed the em-adapter-options branch 2 times, most recently from 5baceeb to 09e647d Compare July 9, 2021 09:05
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.

None yet

2 participants