mirror of
				https://github.com/3ybactuk/marketplace-go-service-project.git
				synced 2025-10-30 05:53:45 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			395 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			395 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| @startuml
 | |
| 
 | |
| actor User as u
 | |
| collections Cart as c
 | |
| database CartStorage as cs
 | |
| collections ProductService as p
 | |
| 
 | |
| u -> c : POST /user/<user_id>/cart/<sku_id>\n\t- count
 | |
| activate c
 | |
| 
 | |
| c -> p : GET /product/<sku>
 | |
| activate p
 | |
|   p -> c : \nResponse: 200 OK\n\t- name\n\t- price\n\t- sku
 | |
| deactivate p
 | |
| c -> c : validate product exists
 | |
| c -> cs : cart.AddItem()
 | |
| c -> u : Response: 200 OK
 | |
| 
 | |
| deactivate c
 | |
| 
 | |
| @enduml
 | 
