The test API contains a lot of really weird controllers for testing specific features.
GET /api/test/users
HTTP 200 OK
{
"count": 1002,
"page": 1,
"page_size": 2,
"total_pages": 501,
"next": "https://rails-rest-framework.com/api/test/users?page=2",
"results": [
{
"id": 1,
"login": "example"
},
{
"id": 2,
"login": "admin"
}
]
}<?xml version="1.0" encoding="UTF-8"?>
<hash>
<count type="integer">1002</count>
<page type="integer">1</page>
<page-size type="integer">2</page-size>
<total-pages type="integer">501</total-pages>
<next>https://rails-rest-framework.com/api/test/users?page=2</next>
<results type="array">
<result>
<id type="integer">1</id>
<login>example</login>
</result>
<result>
<id type="integer">2</id>
<login>admin</login>
</result>
</results>
</hash>
| Path | Verb | Controller#Action |
|---|---|---|
| users | GET | api/test/users#index |
| users | POST | api/test/users#create |
| users | PUT | api/test/users#update_all |
| users | PATCH | api/test/users#update_all |
| users | DELETE | api/test/users#destroy_all |
| users | OPTIONS | api/test/users#options |
| users/alternate_list | GET | api/test/users#alternate_list |
| users/:id | GET | api/test/users#show |
| users/:id | PUT | api/test/users#update |
| users/:id | PATCH | api/test/users#update |
| users/:id | DELETE | api/test/users#destroy |
| users/:id/description | GET | api/test/users#description |