User tests: Successful: Unsuccessful:
Pull Request resolves #45971 follow-up #46080
fixed form level.xml
use the POST with endpoint /api/index.php/v1/users/levels with this payload to create a User Access Level
{
"id":"0",
"title": "aaTechnician",
"rules": [1,2]
}HTTP 400 Bad request
{
"errors": [
{
"title": "Field required: id"
}
]
}
HTTP 200 ok
{
"links": {
"self": "https://localhost:80/api/index.php/v1/users/levels"
},
"data": {
"type": "levels",
"id": "16",
"attributes": {
"id": 16,
"title": "aaTechnician",
"rules": [
1,
2
]
}
}
}Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_users JavaScript Unit Tests |
| Labels |
Added:
Unit/System Tests
PR-5.4-dev
|
||
| Title |
|
||||||
I have tested this item ✅ successfully on 30d4895
Tested Successfully!
Before the patch:
{
"errors": [
{
"title": "Field required: id"
}
]
}
And after the patch:
{
"links": {
"self": "http://localhost/joomla-cms/api/index.php/v1/users/levels"
},
"data": {
"type": "levels",
"id": "7",
"attributes": {
"id": 7,
"title": "aaTechnician",
"rules": [
1,
2
]
}
}
}
I have tested this item ✅ successfully on 30d4895
I have tested this item ✅ successfully on 30d4895
| Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
I have tested this item ✅ successfully on 30d4895
Tested Successfully!
Before the patch:
{
"errors": [
{
"title": "Field required: id"
}
]
}
And after the patch:
{
"links": {
"self": "http://localhost/joomla-cms/api/index.php/v1/users/levels"
},
"data": {
"type": "levels",
"id": "7",
"attributes": {
"id": 7,
"title": "aaTechnician",
"rules": [
1,
2
]
}
}
}
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47748.