Skip to content

A RESTful shopping cart web service built using the Silex framework.

Notifications You must be signed in to change notification settings

aabrahamian/shoppingcart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RESTful shoppingcart web service

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

Features

Typical GET, POST, PUT, DELETE operations POST 303 pattern ContentNegotiation module

Silex Extensions

ContentNegotiationServiceProvider

CorsServiceProvider

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

JmsSerializerServiceProvider

ValidationServiceProvider

TODO List

  • 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

About

A RESTful shopping cart web service built using the Silex framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published