This is a toy project I'm working on. It has the following goals.
- Learn the Silex framework https://github.com/fabpot/Silex
- Make a web service that even Roy Fielding would consider RESTful
- End up with something that can be used as a starting point for quickly producing RESTful services in the future
Typical GET, POST, PUT, DELETE operations POST 303 pattern ContentNegotiation module
The CorsServiceProvider provides a service "cors" that can be added as after middleware to the Application, a ControllerCollection, or a Route. It also goes through all routes and generates all necessary OPTIONS methods. You can set values for all of the CORS response headers
- cors.allowOrigin
- cors.allowMethods
- cors.allowHeaders
- cors.maxAge
- cors.allowCredentials
- cors.exposeHeaders
- Checkout the SecurityServiceProvider. What are it's capabilities and limitations? What other options are there?
- Checkout the TranslationServiceProvier. What are it's capabilities and limitations? What other options are there?
- Explore json hyper-schema as a way of satisfying the HATEOAS requirement of REST
- Create Silex middleware for jsonp support
- Explore strategies for deploying and maintaining more than one version of an API
- Explore swagger/swagger-ui as a means of documenting the API