update docs

This commit is contained in:
2026-01-28 18:24:13 -05:00
parent 348b10734f
commit e0691bc7fe
6 changed files with 114 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ import io.swagger.v3.oas.annotations.responses.ApiResponse;
@RestController
@RequestMapping("/api")
public interface ApiController { // SINGLETON
public class ApiController { // SINGLETON
@Operation(summary = "Get status Inventory Loaded", description = "Returns status Inventory Loaded.")
@ApiResponse(responseCode = "200", description = "loaded")
@@ -45,16 +45,9 @@ public interface ApiController { // SINGLETON
InventoryManager.getInstance().add(make(new Sculpture()));
InventoryManager.getInstance().add(make(new Sculpture()));
InventoryManager.getInstance().add(make(new Sculpture()));
}
return new ResponseEntity<>("Resource loaded!", HttpStatus.OK);
}
static void callerInterface() {
// @Comment
/*
* 1. Add new art object to the inventory. Your manager must check that the art
* is not already in the inventory before adding
*/
InventoryManager.getInstance().save();
}
/* Customers */
CustomerManager.getInstance().load();
@@ -68,6 +61,16 @@ public interface ApiController { // SINGLETON
CustomerManager.getInstance().save();
}
return new ResponseEntity<>("Resource loaded!", HttpStatus.OK);
}
static void callerInterface() {
// @Comment
/*
* 1. Add new art object to the inventory. Your manager must check that the art
* is not already in the inventory before adding
*/
/*
* 2. Remove art object from the inventory
*/

View File

@@ -0,0 +1,23 @@
[
{
"email": "kate@museum.com",
"id": "2020281777",
"nameFirst": "Kate",
"nameLast": "Demsey",
"phone": "310-676-4844"
},
{
"email": "jim@homedeco.com",
"id": "5261329301",
"nameFirst": "Jim",
"nameLast": "Gumbly",
"phone": "203-676-4844"
},
{
"email": "evan@homedeco.com",
"id": "4961460829",
"nameFirst": "Evan",
"nameLast": "Hao",
"phone": "203-676-8943"
}
]

View File

@@ -0,0 +1,67 @@
[
{
"Author": "Dave Janson",
"author": "Dave Janson",
"created": "2026-01-28T18:21:41.628880822-05:00[America/New_York]",
"description": "East Market Square find. Local Author.",
"id": "3215738680",
"price": 92.0,
"title": "Windy Rowing",
"type": "DRAWING"
},
{
"Author": "Dave Janson",
"author": "Dave Janson",
"created": "2026-01-28T18:21:41.628927081-05:00[America/New_York]",
"description": "East Market Square find. Local Author.",
"id": "5150484617",
"price": 102.0,
"title": "Different day same thing",
"type": "PRINT"
},
{
"Author": "Dave Janson",
"author": "Dave Janson",
"created": "2026-01-28T18:21:41.628966511-05:00[America/New_York]",
"description": "East Market Square find. Local Author.",
"id": "4279724246",
"price": 51.0,
"title": "Walking by the beach.",
"type": "PAINTING",
"height": 0,
"width": 0
},
{
"Author": "Dave Janson",
"author": "Dave Janson",
"created": "2026-01-28T18:21:41.628997921-05:00[America/New_York]",
"description": "East Market Square find. Local Author.",
"id": "2561610938",
"price": 32.0,
"title": "Jolly Romp",
"type": "SCULPTURE",
"weight": 4.0
},
{
"Author": "Dave Janson",
"author": "Dave Janson",
"created": "2026-01-28T18:21:41.629066491-05:00[America/New_York]",
"description": "East Market Square find. Local Author.",
"id": "3819887576",
"price": 32.0,
"title": "Jolly Romp",
"type": "SCULPTURE",
"weight": 4.0
},
{
"Author": "Dave Janson",
"author": "Dave Janson",
"created": "2026-01-28T18:21:41.62908951-05:00[America/New_York]",
"description": "East Market Square find. Local Author.",
"id": "4329655027",
"price": 32.0,
"title": "Jolly Romp",
"type": "SCULPTURE",
"weight": 4.0
}
]