This is the API backing to openipsum.com. It is built using Rails-api.
Checkout the UI for this api here
The host for the API is https://api.openipsum.com
, all requests must be made over https.
GET /ipsums Get all ipsums
POST /ipsums Create an ipsum
GET /ipsums/:id Get specific ipsum
Put /ipsums/:id Update an ipsum
DELETE /ipsums/:id Delete an ipsum
GET /search Search by text and title
POST /users Create user
GET /users/:id Get a specific user
PUT /users/:id Update a user
DELETE /users/:id Delete a user
POST /signin Signs in a user
DELETE /signout Signs out a user
If you find any bugs or would like to ask for features, please open an issue.
Otherwise details for running this application can be found below.
You will need the following things properly installed on your computer.
- Ruby 2.2.3
- Rails 4.2.5
- Postgresql
git clone /~https://github.com/jaxgeller/open-ipsum-api
this repository- change into the new directory
bundle
rake db:reset
rails server
Run the init scripts
curl -o run.sh https://raw.githubusercontent.com/jaxgeller/open-ipsum-api/master/deployment/bootstrap.sh && \
chmod +x run.sh && \
./run.sh