Test service for the Universal editor.
RESTful API:
-
News
- List:
GET http://universal-backend.test/rest/v1/news
- One:
GET http://universal-backend.test/rest/v1/news/<id>
- Create:
POST http://universal-backend.test/rest/v1/news
- Update:
PUT http://universal-backend.test/rest/v1/news/<id>
- Delete:
DELETE http://universal-backend.test/rest/v1/news/<id>
- Lock:
LOCK http://universal-backend.test/rest/v1/news/<id>
(news #3 and #4 already locked) - Unlock:
UNLOCK http://universal-backend.test/rest/v1/news/<id>
(news #3 and #4 already locked)
- List:
-
News categories
- List:
GET http://universal-backend.test/rest/v1/news/categories
- One:
GET http://universal-backend.test/rest/v1/news/categories/<id>
- Create:
POST http://universal-backend.test/rest/v1/news/categories
- Update:
PUT http://universal-backend.test/rest/v1/news/categories/<id>
- Delete:
DELETE http://universal-backend.test/rest/v1/news/categories/<id>
- List:
-
Staff
- List:
GET http://universal-backend.test/rest/v1/staff
- One:
GET http://universal-backend.test/rest/v1/staff/<id>
- Create:
POST http://universal-backend.test/rest/v1/staff
- Update:
PUT http://universal-backend.test/rest/v1/staff/<id>
- Delete:
DELETE http://universal-backend.test/rest/v1/staff/<id>
- List:
-
Country
- List:
GET http://universal-backend.test/rest/v1/country
- One:
GET http://universal-backend.test/rest/v1/country/<id>
- Create:
POST http://universal-backend.test/rest/v1/country
- Update:
PUT http://universal-backend.test/rest/v1/country/<id>
- Delete:
DELETE http://universal-backend.test/rest/v1/country/<id>
- List:
-
Tags
- List:
GET http://universal-backend.test/rest/v1/tags
- One:
GET http://universal-backend.test/rest/v1/tags/<id>
- Create:
POST http://universal-backend.test/rest/v1/tags
- Update:
PUT http://universal-backend.test/rest/v1/tags/<id>
- Delete:
DELETE http://universal-backend.test/rest/v1/tags/<id>
- List:
- Install VirtualBox
- Install Vagrant
- Create GitHub personal API token
- Prepare project:
git clone https://github.com/universal-editor/backend-app.git
cd backend-app/vagrant/config
cp vagrant-local.example.yml vagrant-local.yml
-
Place your GitHub personal API token to
vagrant-local.yml
-
Change directory to project root:
cd backend-app
-
Run commands:
vagrant plugin install vagrant-hostmanager vagrant up
That's all. You just need to wait for completion! After that you can access project locally by URL http://universal-backend.test.