Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/airtonix/wintersmith-middleware-restful
https://github.com/airtonix/wintersmith-middleware-restful
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/airtonix/wintersmith-middleware-restful
- Owner: airtonix
- Created: 2014-12-01T06:35:57.000Z (about 10 years ago)
- Default Branch: develop
- Last Pushed: 2014-12-03T01:57:45.000Z (about 10 years ago)
- Last Synced: 2024-05-21T03:17:34.613Z (8 months ago)
- Language: CoffeeScript
- Size: 160 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wintersmith Middleware Restful
create restful apis for wintersmith preview mode
- uses [restful](https://github.com/flatiron/restful), [resourceful](https://github.com/flatiron/resourceful) from [flatiron](https://github.com/flatiron/flatiron)
## 2014.12.01: Only works with the wintersmith branch [feature/middleware](https://github.com/airtonix/wintersmith/tree/feature/middleware)
## getting started
```
plugins = [
...
'wintersmith-middleware-restful'
...
]...
restful:
resources: './src/resources'
```## resources
```
exports.User = ->
@use 'memory'@restful = true
@timestamps()
@number 'id'
@bool 'active', default: false
@string 'username'
@string 'email', format: 'email', require: true
@string 'password'
@string 'first_name'
@string 'last_name'```