Git Product home page Git Product logo

Comments (3)

benkonrath avatar benkonrath commented on June 26, 2024

EDA uses this function to create the paths (endpoints):

pathForType: function(type) {
  var dasherized = Ember.String.dasherize(type);
  return Ember.String.pluralize(dasherized);
},

You can override this in your own app if you don't like this default and make everything singular. Here's a link that should help:

http://emberjs.com/guides/models/customizing-adapters/#toc_path-customization

In your case, you might have to also tell the inflector about how to deal with the word 'chorus' for singular / pluralization. Here's the a link to the docs that should help with this one:

http://emberjs.com/guides/models/the-rest-adapter/#toc_pluralization-customization

Do these suggestions / pointers solve your problem?

from ember-django-adapter.

dbinetti avatar dbinetti commented on June 26, 2024

Thank you! I'll need to better understand how to override using the custom adapters, but that isn't a bug...

from ember-django-adapter.

benkonrath avatar benkonrath commented on June 26, 2024

You can run this ember-cli command to generate an adapter that you can override:

ember generate drf-adapter application

This is documented here:

http://dustinfarris.com/ember-django-adapter/extending/

I'm glad I could help you out on this one.

from ember-django-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.