Giter Site home page Giter Site logo

ajgribble / sails-json-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mdconaway/sails-ember-rest

9.0 9.0 2.0 843 KB

Ember Data JSONAPI-Adapter compatible controllers, policies, services and generators for Sails v1.0.x+

License: MIT License

JavaScript 60.63% Less 0.11% EJS 39.27%

sails-json-api's People

Contributors

ajgribble avatar garibaldy avatar mdconaway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sails-json-api's Issues

NOT WORKING with latest Sails(1.0.x->1.2.4),

  1. When i setup the initial setup after the installation and i get one of my user mock
    i didn't get any JsonAPI response(no data, meta or error attributes);

'GET' localhost:1337/api/v1/users/1

{
  "createdAt": 1590838768594,
  "updatedAt": 1590838768594,
  "id": 1,
  "email": "[email protected]",
  "password": "$2b$10$7n0N7c0Qjrq/wUpnAJkK7O15hNqcStbZWrT1mXdrJ17jXQ0ZlovQy",
  "fullName": "Miracle Larson"
}
  1. Then i thought that the problem are the controllers,

then i added one of the two form over the controller and i get an error message

`const Controller = new sails.hooks['sails-json-api'].controller({});

export default Controller;`

like this

`error: 
error: Attempted to `require('/home/garibaldy/sailsProject/corpus/api/controllers/UserController.js')`, but an error occurred:
--

/home/garibaldy/sailsProject/corpus/api/controllers/UserController.js:3
export default Controller;
^^^^^^

SyntaxError: Unexpected token 'export'`

update to async actions

Support asynchronous actions that could take awhile to process (202 Accepted)

i'm able to

localhost:1337/api/v1/users/1

but not (and the mock doesn't have more than 10 users)

localhost:1337/api/v1/users

probably related with #27

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.