Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumieval/cardboard
https://github.com/fumieval/cardboard
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fumieval/cardboard
- Owner: fumieval
- License: bsd-3-clause
- Created: 2016-05-04T02:27:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-24T07:11:44.000Z (about 8 years ago)
- Last Synced: 2024-10-15T06:50:59.076Z (2 months ago)
- Language: Haskell
- Size: 646 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
cardboard - extensible contents management system
====Usage
```
$ stack build
$ stack exec cardboard
```Then access `http://localhost:3000/`
For each class, it evaluates the content as a JavaScript function, and applies it to an object of payloads where keys are selected tags.
## API
### GET /tags :: JSON [Text]
Get a list of all tags.
### GET /classes :: JSON [Text]
Get a list of all classes.
### GET /tag/:name :: Text
Check if the specified tag exists.
### POST /tag/:name :: Text
Create a new tag.
### DELETE /tag/:name :: Text
Delete a tag.
### GET /class/:name :: Text
Get a class source.
### POST /class/:name :: Text
Upload the request body as a class.
### DELETE /tag/:name :: Text
Delete a class.
### GET /payload/:tag/:class :: ByteString
Get the payload of the specified tag and the class.
### POST /payload/:tag/:class :: Text
Upload a new payload.