Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
RESTful-Drupal
/
restful
Public
Notifications
You must be signed in to change notification settings
Fork
171
Star
416
Code
Issues
218
Pull requests
33
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
9. Examples
Jump to bottom
Edit
New page
Dane Rossenrode edited this page
Apr 9, 2016
·
1 revision
@todo List all examples on this page
Wiki pages
Pages
55
Loading
Home
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
1.1. Defining a resource plugin (1.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
1.2. Defining a resource plugin (2.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
2. Defining the public fields
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
2. Defining the public fields (1.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
2. Defining the public fields (2.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
2.3. Defining a custom field class (2.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
3. Authentication
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
3.2. Token authentication
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
4. Consuming your API
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
5.1. Default Endpoints (1.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
5.2. Default Endpoints (2.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
6.1. Filtering the response
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
6.2. Sorting the response
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
6.3. Paginating the response
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
7. Data providers
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
7.2. List of data providers (2x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
7.3. Assigning a different data provider
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
7.4. Creating a custom data provider
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
8. Security
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
9. Examples
Loading
9.1. Access unpublished nodes
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
9.2. Auto complete
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
9.3. Custom field access control
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
9.4. Filter on term name
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
9.5. Filtering users by role
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
About response formatters
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
access data from a secondary database
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Adding related resource data
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Auto completefdas
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Consuming your API
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Creating a resource that takes data from a secondary database
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Defining the endpoint's available routes (URLs)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Documenting your API
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
FAQ
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
login
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Look up a URL alias mapping with DataProviderDbQuery
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Obtaining the current user
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Obtaining the current user [RESTful v1]
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
OPTIONS requests
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Resource plugin definition properties
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Saving an entity back to Drupal
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Specifying available HTTP methods for each field
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
The Variables resource
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Tutorials & blog posts
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Tutorials & blog posts (1.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Upgrading from 1.x to 2.x
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Usage with Backbone.js
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Using a different field for URL ID
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Using block visibility
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Using process callbacks to modify field data
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
Using the API within Drupal
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
When a property isn't available
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
When things go wrong
Uh oh!
There was an error while loading.
Please reload this page
.
Loading
z. [deprecated] OVERVIEW Defining your own RESTful resource plugin (2.x)
Uh oh!
There was an error while loading.
Please reload this page
.
Show 40 more pages…
Add a custom sidebar
Clone this wiki locally
You can’t perform that action at this time.