https://github.com/a0s/lifetest
Life Test
https://github.com/a0s/lifetest
Last synced: 10 months ago
JSON representation
Life Test
- Host: GitHub
- URL: https://github.com/a0s/lifetest
- Owner: a0s
- Created: 2017-02-16T10:29:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T15:18:34.000Z (over 3 years ago)
- Last Synced: 2025-01-06T02:12:11.118Z (over 1 year ago)
- Language: Ruby
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Usage
```bash
#
# DONT FORGET TO ADD THIS PORT TO NAT RULES
# WHEN USING VIRTUALBOX/VMWARE ON MAC (boot2docker) !!!
#
export PORT=3333
git clone https://github.com/a0s/lifetest.git
cd lifetest
docker build -t lifetest -f docker/Dockerfile .
docker run -itd -p ${PORT}:9292 --name lifetest lifetest
curl "localhost:${PORT}/posts" -H "Accept: application/vnd.api+json"
```
#Examples
```bash
curl "localhost:9292/posts" -H "Accept: application/vnd.api+json"
curl "localhost:9292/posts/1/comments" -H "Accept: application/vnd.api+json"
curl "localhost:9292/posts/1/tags" -H "Accept: application/vnd.api+json"
curl "localhost:9292/tags/1" -H "Accept: application/vnd.api+json"
curl "localhost:9292/comments/1" -H "Accept: application/vnd.api+json"
#curl "localhost:9292/tags/1/posts" -H "Accept: application/vnd.api+json"
```