User tests: Successful: Unsuccessful:
Pull Request for Issue # .
add filter state to banners endpoint
GET {{base_path}}/api/index.php/v1/banners?filter[state]=1
GET {{base_path}}/api/index.php/v1/banners?filter[state]=0
N/A
you can filter banners from state = published or unpublished
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Labels |
Added:
Webservices
PR-6.1-dev
|
||
| Category | ⇒ | JavaScript Unit Tests |
@alikon - I am trying to test this during PBF and in the BEFORE condition, when I do a GET:
https://master222.pbf20.org/api/index.php/v1/banners?filter[state]=1
I get a 200 OK,
{
"links": {
"self": "https://master222.pbf20.org/api/index.php/v1/banners?filter[state]=0"
},
"data": [],
"meta": {
"total-pages": 0
}
}
Am I misunderstanding but shouldn't I get a 404 or 500 since the functionality shouldn't exist BEFORE THE PR?
I have tested this item ✅ successfully on 77f36f2
I have tested this item ✅ successfully on 77f36f2
Re-test successfully ;)
I have tested this item ✅ successfully on 77f36f2
| Status | Pending | ⇒ | Ready to Commit |
RTC
Successful test with the expected result.
I have tested this item ✅ successfully on 52d031d
POST:
1 result with
https://joomla.sviluppo.online/api/index.php/v1/banners?filter%5Bstate%5D=0&page%5Blimit%5D=20&page%5Boffset%5D=00 result with
https://joomla.sviluppo.online/api/index.php/v1/banners?filter%5Bstate%5D=1&page%5Blimit%5D=20&page%5Boffset%5D=0This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46656.