Git Product home page Git Product logo

services-3.x-sample's Introduction

This is a series of at least two posts where the first one Creating a Resource for Services 3.x goes into how you can create a resource for services. The second one will detail how you set up OAuth with services, and how you can connect to other Drupal installations using the rest_client module.

services-3.x-sample's People

Contributors

hugowetterberg avatar pvorb avatar voxpelli avatar

Stargazers

 avatar Marco Didò avatar Jonathan Lai avatar mantu avatar Trifon avatar Angus H. avatar Diego Pino Navarro avatar  avatar Jaime Guzman avatar CornGuo avatar Seshi Reddy Alla avatar Anthony Giza avatar Daniel Primo avatar  avatar Rijalul Fikri avatar  avatar Andrew Chen avatar Richard Yu avatar neversion avatar Eric Stockmeyer avatar Paul Mackay avatar Ivan Soto Fernandez avatar Eric Wettstein avatar duynguyen avatar Quang Cuong avatar Brian Wood avatar Francisco Luz avatar  avatar Stone Vo avatar Carlos Saport avatar Bob Sims avatar Aftab Alam avatar Ardi avatar jean-françois lefebvre avatar Rowland Watkins avatar Queli Coto avatar Simon Ljungberg avatar Linus Lundahl avatar Lakshminp avatar Anders Fajersson avatar  avatar Neuman Vong avatar Bicherele avatar Robert Kosara avatar Jérémy Chatard avatar

Watchers

 avatar Si Nguyen avatar Andre Venter avatar James Cloos avatar Jaime Guzman avatar Richard Yu avatar mantu avatar  avatar

services-3.x-sample's Issues

Create (and probably Update) fail

Thanks for this example. However, I couldn't get Create to work via the javascript example. I get 406 'Missing required argument data' back. The PHP definition of the resource defines are single 'data' argument, but the javascript is set to return an anonymous object with values 'subject' and 'note' (e.g. {"subject":"subject","note":"1234"}). Either the js object has to be redefined or the PHP 'create' arguments need to be different.

Keeping the PHP intact means the js needs to be more like {"data":{"subject":"123","note":"1234"}}

I also found I had to cast the data as an object in _noteresource_create().

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.