reviews + events

This commit is contained in:
Daniel
2020-03-02 02:43:15 +01:00
parent 9921b2f3de
commit cb066233c9
52 changed files with 103 additions and 1077 deletions

40
events/tests.http Normal file
View File

@@ -0,0 +1,40 @@
#################################################
#
# Reviews Service
#
### Request to CatalogService > delegated to ReviewsService
GET http://localhost:4004/browse/Books(201)/reviews
### Alternative OData URL
GET http://localhost:4004/browse/Books/201/reviews
###
GET http://localhost:4004/browse/Books(201)?
&$select=ID,title,rating
&$expand=reviews
# Note: the latter only works in case of ReviewsService in same process
### ReviewsService mocked in same process
GET http://localhost:4004/reviews/Reviews?
###
POST http://localhost:4004/reviews/Reviews
Content-Type: application/json;IEEE754Compatible=true
{"subject":"201", "rating":"5", "title":"boo"}
### ReviewsService running as separate process
GET http://localhost:5005/reviews/Reviews?
###
POST http://localhost:5005/reviews/Reviews
Content-Type: application/json;IEEE754Compatible=true
{"subject":"201", "rating":"5", "title":"boo"}