Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
05b1b04
feat: Add Support for Parameter Request Methods
usernane Nov 26, 2025
063c34a
test: Added Test Cases
usernane Nov 26, 2025
2d03475
Update WebServicesManagerTest.php
usernane Nov 26, 2025
0ea983a
chore: Rename `AbstractWebService` to `WebService`
usernane Dec 2, 2025
fd5ea74
refactor: Made `isAuthorized` Abstract
usernane Dec 2, 2025
18cf276
refactor: Rename Default Output Stream
usernane Dec 2, 2025
9f4532e
refactor: Enhanced API Test Case Class
usernane Dec 2, 2025
02ad503
feat: Added OpenAPI Schema
usernane Dec 15, 2025
c8c820d
feat: Add OpenAPI Specs to Request Param
usernane Dec 15, 2025
decf743
feat: External Doc Obj of Open API
usernane Dec 15, 2025
2ac8ce9
feat: Open API Obj
usernane Dec 15, 2025
2bfdf8a
chore: OpenAPI
usernane Dec 15, 2025
930e883
refactor: Enhanced `toJSON`
usernane Dec 16, 2025
af63ed3
feat: Open API Classes
usernane Dec 16, 2025
7be7947
Update ResponsesObj.php
usernane Dec 16, 2025
d0295a4
Update PathItemObj.php
usernane Dec 16, 2025
983598f
Update WebService.php
usernane Dec 16, 2025
f140d85
Update WebService.php
usernane Dec 16, 2025
71eba04
Update WebService.php
usernane Dec 16, 2025
995bb74
Update WebService.php
usernane Dec 16, 2025
c3c7dd5
Update WebService.php
usernane Dec 16, 2025
6dc29e8
Update WebService.php
usernane Dec 16, 2025
fa656b1
Update WebServiceTest.php
usernane Dec 17, 2025
2e0d30c
Update RequestParameterTest.php
usernane Dec 17, 2025
2239d71
Update WebServicesManager.php
usernane Dec 17, 2025
ffcc4de
Update PathsObj.php
usernane Dec 17, 2025
6058087
Update OpenAPIObj.php
usernane Dec 17, 2025
428948c
Update ManagerInfoService.php
usernane Dec 17, 2025
4d602bf
test: Added More Test Cases
usernane Dec 17, 2025
b1d265d
chore: Merge pull request #83 from WebFiori/open-api-support
usernane Dec 18, 2025
2d0e6fc
feat: Added Annotations to Web Services
usernane Dec 18, 2025
0ad4d94
feat: Added Support for Annotations
usernane Dec 18, 2025
4241fdf
feat: Annotated Auth
usernane Dec 18, 2025
71c38ec
feat: Added Exceptions
usernane Dec 23, 2025
08eaa97
chore: Added Samples
usernane Dec 23, 2025
df0e1fa
test: Updated Test Cases
usernane Dec 24, 2025
0fb0fec
test: Updated Test Cases
usernane Dec 24, 2025
9cd90b8
feat: Enhanced Security Context
usernane Dec 24, 2025
04610d0
refactor: Add `TestUser` class
usernane Dec 24, 2025
1479aa4
Update AuthenticationAnnotationTest.php
usernane Dec 24, 2025
ab62a75
Update FullAnnotationIntegrationTest.php
usernane Dec 24, 2025
9edb176
Update HttpCookieTest.php
usernane Dec 24, 2025
f5d478e
Update ParameterMappingTest.php
usernane Dec 24, 2025
9e37b45
Update MulNubmersService.php
usernane Dec 24, 2025
c996ffb
Update WebService.php
usernane Dec 24, 2025
218e5fd
Update WebServicesManager.php
usernane Dec 24, 2025
5a2ad48
Update SecurityContext.php
usernane Dec 24, 2025
bd41190
fix: Rename Variable to Remove Conflect
usernane Dec 29, 2025
68e54b5
fix: Use of Null as Standalone Type
usernane Dec 29, 2025
e83112c
fix: PHPUnit 9 Missing Method
usernane Dec 29, 2025
30da6a9
feat: Detection of Duplicated Mappings
usernane Dec 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ php-cs-fixer.phar
*.Identifier
/tests/.phpunit.cache
/.vscode
tests/WebFiori/Tests/Http/output-stream.txt
/OpenAPI_files
6 changes: 6 additions & 0 deletions WebFiori/Http/APIFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*
*/
class APIFilter {
private $requestParameters = [];
/**
* A constant that indicates a given value is invalid.
*
Expand Down Expand Up @@ -103,6 +104,10 @@ public function addRequestParameter(RequestParameter $reqParam) {
$attribute[$filterIdx][] = FILTER_DEFAULT;
}
$this->paramDefs[] = $attribute;
$this->requestParameters[] = $reqParam;
}
public function getParameters() : array {
return $this->requestParameters;
}
/**
* Clears the arrays that are used to store filtered and not-filtered variables.
Expand All @@ -118,6 +123,7 @@ public function clearInputs() {
*/
public function clearParametersDef() {
$this->paramDefs = [];
$this->requestParameters = [];
}
/**
* Filter the values of an associative array.
Expand Down
283 changes: 207 additions & 76 deletions WebFiori/Http/APITestCase.php

Large diffs are not rendered by default.

Loading
Loading