Hubwiz.com
|
Online Course
|
API Manual
SailsJS API Manual
Class(10)
Guide(106)
Property(30)
Method(105)
Service(9)
Command(7)
Setting(16)
Hook(4)
Class
Application
Request (req)
Response (res)
Datastore
Model
Query
Record
Resourceful PubSub
Socket (sails.sockets)
Socket Client (sails.io.js)
Guide
Advanced usage
Lifecycle
Blueprint API
Command Line Interface (CLI)
Configuration (sails.config)
Waterline (ORM)
WebSockets
SailsSocket
Methods
Properties
Actions and controllers
Generating actions and controllers
Routing to actions
Assets
Default tasks
Disabling Grunt
Task automation
Blueprints
Blueprint actions
Blueprint routes
Configuration
The local.js file
Using .sailsrc files
Deployment
FAQ
Hosting
Scaling
E-commerce
Extending Sails
Adapters
Available adapters
Custom adapters
Custom responses
Adding a custom response
Generators
Available generators
Custom generators
Hooks
Available hooks
Events
Hook specification
.registerActions()
Installable hooks
Project hooks
Using hooks
File uploads
Uploading to GridFS
Uploading to S3
Globals
Disabling globals
Helpers
Example helper
Internationalization
Locales
Translating dynamic content
Logging
Custom log messages
Middleware
Conventional defaults
Models and ORM
Associations
Many-to-many
One way association
One-to-many
One-to-one
Reflexive associations
Through associations
Attributes
Errors
Lifecycle callbacks
Model settings
Models
Query language
Records
Standalone Waterline usage
Validations
Policies
Access Control and Permissions
Programmatic usage
Tips and tricks
Realtime
Multi-server environments
On the client
On the server
Routes
Custom routes
URL slugs
Security
Clickjacking
Content security policy
CORS
CSRF
DDOS
P3P
Socket hijacking
Strict Transport Security
XSS
Services
Sessions
Shell scripts
Testing
Views
Layouts
Locals
Partials
View engines
Property
sails.LOOKS_LIKE_ASSET_RX
sails.config.custom
req._startTime
req.body
req.cookies
req.fresh
req.headers
req.hostname
req.ip
req.ips
req.isSocket
req.method
req.options
req.originalUrl
req.params
req.path
req.protocol
req.query
req.secure
req.signedCookies
req.socket
req.subdomains
req.url
req.wantsJSON
req.xhr
req.host
.driver
.manager
io.sails
io.socket
Method
sails.getActions()
sails.getRouteFor()
sails.lift()
sails.load()
sails.lower()
sails.registerAction()
sails.registerActionMiddleware()
sails.reloadActions()
sails.renderView()
sails.request()
sails.getBaseUrl()
sails.getDatastore()
sails.getUrlFor()
sails.log()
req.accepts()
req.acceptsCharsets()
req.acceptsLanguages()
req.allParams()
req.file()
req.get()
req.is()
req.param()
req.setLocale()
req.setTimeout()
res.attachment()
res.badRequest()
res.clearCookie()
res.cookie()
res.forbidden()
res.get()
res.json()
res.jsonp()
res.location()
res.notFound()
res.ok()
res.redirect()
res.send()
res.serverError()
res.set()
res.status()
res.type()
res.view()
res.negotiate()
.leaseConnection()
.sendNativeQuery()
.transaction()
.addToCollection()
.archive()
.archiveOne()
.avg()
.count()
.create()
.createEach()
.destroy()
.destroyOne()
.find()
.findOne()
.findOrCreate()
.getDatastore()
.removeFromCollection()
.replaceCollection()
.stream()
.sum()
.update()
.updateOne()
.validate()
.native()
.query()
.catch()
.decrypt()
.exec()
.fetch()
.intercept()
.limit()
.meta()
.populate()
.skip()
.sort()
.then()
.tolerate()
.toPromise()
.usingConnection()
.where()
.toJSON()
.getRoomName()
.publish()
.subscribe()
.unsubscribe()
.addRoomMembersToRooms()
.blast()
.broadcast()
.getId()
.join()
.leave()
.leaveAll()
.removeRoomMembersFromRooms()
sails.sockets.id()
io.socket.delete()
io.socket.get()
io.socket.off()
io.socket.on()
io.socket.patch()
io.socket.post()
io.socket.put()
io.socket.request()
Service
add to
create
destroy
find one
find where
populate where
remove from
replace
update
Command
sails console
sails debug
sails generate
sails inspect
sails lift
sails new
sails version
Setting
sails.config.*
sails.config.blueprints
sails.config.bootstrap()
sails.config.custom
sails.config.datastores
sails.config.globals
sails.config.http
sails.config.i18n
sails.config.log
sails.config.models
sails.config.policies
sails.config.routes
sails.config.security
sails.config.session
sails.config.sockets
sails.config.views
Hook
.configure()
.defaults
.initialize()
.routes