Reference implementation of the Marketplace Generic Enabler
- Install MySQL and create a database "marketplace" for user root. Alternatively you can change the properties\database.properties file
- Update properties\marketplace.properties according to your environment
- Run the database\ddl_mysql5.sql script
- For development in Eclipse use " mvn eclipse:eclipse -Dwtpversion=2.0 "
Basic Operations for Browsing:
User: demo1234 Password: demo1234
All stores: [GET] http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/stores/ Specific store: [GET] http://[SYSTEM:PORT]/FiwareMarketplace/v1/offering/store/[StoreName] All services for a given store: [GET] http://[SYSTEM:PORT]/FiwareMarketplace/v1/offering/store/testStore/offerings/ Specific Offering: [GET] http://[SYSTEM:PORT]/FiwareMarketplace/v1/offering/store/[StoreName]/offering/[OfferingName] Fulltext Search: [GET] http://[SYSTEM:PORT]/FiwareMarketplace/v1/search/offerings/fulltext/[SearchString]
CRUD Operations
User: demo1234 Password: demo1234
Save User Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/userManagement/user Header: {Accept-Encoding=[gzip, deflate]} Body:
[email protected]Save UserResponse:
Response Status: 201
Find User Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/userManagement/user/demoCompany Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body: null Find UserResponse:
Response Status: 200
Update User Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/userManagement/user/demoCompany Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body:
[email protected]:29:44+02:00Update UserResponse:
Response Status: 200
Delete User Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/userManagement/user/demoCompany Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body: null Delete UserResponse:
Response Status: 200
Save Store Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/store Header: {Accept-Encoding=[gzip, deflate]} Body:
http://www.test1235.deSave StoreResponse:
Response Status: 201
Find Store Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/store/testName12356 Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body: null Find StoreResponse:
Response Status: 200
Update Store Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/store/testName12356 Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body:
SAP [email protected]:43:56+02:00SAP [email protected]:43:56+02:002012-06-28T14:41:23+02:00http://www.xxx.deUpdate StoreResponse:
Response Status: 200
Delete Store
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/registration/store/testName12356 Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body: null Delete StoreResponse:
Response Status: 200
Save Service Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/offering/store/testStore/offering Header: {Accept-Encoding=[gzip, deflate]} Body:
http://qkad00202897a.dhcp.qkal.sap.corp:7777/data/rdf/WarrantyManagementSolution_Master.rdfSave ServiceResponse:
Response Status: 201
Find Service Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/offering/store/testStore/offering/myService Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body: null Find ServiceResponse:
Response Status: 200
Update Service Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/offering/store/testStore/offering/myService Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body:
SAP [email protected]:43:56+02:0014SAP [email protected]:43:56+02:002012-06-28T14:47:06+02:00http://qkad00202897a.dhcp.qkal.sap.corp:7777/data/rdf/WarrantyManagementSolution_Master.rdfUpdate ServiceResponse:
Response Status: 200
Delete Service Request:
Resource URL: http://[SYSTEM:PORT]/FiwareMarketplace/v1/offering/store/testStore/offering/myService2 Header: {Accept-Encoding=[gzip, deflate], Accept=[application/xml]} Body: null Delete ServiceResponse:
Response Status: 200
Create a new Rating Object Category:
curl.exe url -v -H "Content-Type: application/xml" -X PUT -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA
Create a new Rating Object:
curl.exe url -v -H "Content-Type: application/xml" -X PUT -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA
Create a new Rating Category:
curl.exe url -v -H "Content-Type: application/xml" -X PUT -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/category/Quality
Create a new Rating:
curl.exe url -v -H "Content-Type: application/xml" -X PUT -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA/rating/
Create Rating for Category:
curl.exe url -v -H "Content-Type: application/xml" -X PUT -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA/rating/39/category/Quality/stars/4
Create Textual Review:
curl.exe url -v -H "Content-Type: application/xml" -X PUT -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA/rating/39/textualReview/Very Good Service
Get a Rating:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA/rating/39
Get a Category:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/category/Quality
Get a new Rating Object:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA
Get a new Rating Object Category:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA
All Ratings for an Object:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA/ratings
All Objects for an Object Category:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/objects
All Categories for an Object Category:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/categories
All available Object Categories:
curl.exe url -v -H "Content-Type: application/xml" -X GET -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategories
Delete a Rating:
curl.exe url -v -H "Content-Type: application/xml" -X DELETE -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA/rating/39
Delete a Category:
curl.exe url -v -H "Content-Type: application/xml" -X DELETE -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/category/Quality
Delete a new Rating Object:
curl.exe url -v -H "Content-Type: application/xml" -X DELETE -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA/object/objectA
Delete a new Rating Object Category:
curl.exe url -v -H "Content-Type: application/xml" -X DELETE -u "username:password" http://[SYSTEM:PORT]/FiwareMarketplace/v1/rating/objectCategory/newCatA