agitation / api-bundle
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 374
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- agitation/base-bundle: ~1.0
- agitation/intl-bundle: ~1.0
- agitation/seed-bundle: ~1.0
- agitation/validation-bundle: ~1.1
Suggests
- agitation/user-bundle: Required to check for user capabilities. Without it, all calls requiring a user capability will fail.
- dev-master
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5
- 1.4.2
- 1.4.1
- 1.4
- 1.3.17
- 1.3.16
- 1.3.15
- 1.3.14
- 1.3.13
- 1.3.12
- 1.3.11
- 1.3.10
- 1.3.9
- 1.3.8
- 1.3.7
- 1.3.6
- 1.3.5
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.10
- 1.2.9
- 1.2.8
- 1.2.7
- 1.2.6
- 1.2.5
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2
- 1.1.1
- 1.1
- 1.0
This package is not auto-updated.
Last update: 2022-07-24 12:08:56 UTC
README
Agitation is an e-commerce framework, based on Symfony2, focussed on extendability through plugged-in APIs, UIs, payment modules and other components.
AgitApiBundle
This bundle provides a pluggable API handler. It allows other bundles to define their own, independent API endpoints, calls and request/response objects.
API URLs
A simple call may look like this:
https://example.com/api/namespace.v1/ExampleEndpoint.doSomething?request={"foo":"bar"}
namespace ^^^^^^^^^
namespace version ^^
controller name ^^^^^^^^^^^^^^^
endpoint name ^^^^^^^^^^^
actual request ^^^^^^^^^^^^^^^^^^^^^
API annotations
The controllers, endpoints and objects are annotated, these annotations provide meta information to ensure consistent API calls, such as:
- Authentication/authorization: Endpoint calls define the required capabilities (through
agitation/user
) to access a call. - Validation: Expected request/response objects, and their allowed values.
- Automatical documentation: The AgitSdkDocBundle provides tools to automatically generate Markdown documentation.
- Export API endpoints and objects to JavaScript for simple client-side usage.