-
Notifications
You must be signed in to change notification settings - Fork 0
API Design
Dan Nemeth edited this page Mar 10, 2015
·
3 revisions
- User: Any authenticated user
- Lessee: The owner of a lease
- Infrastructure Admin: Privileged user responsible for the provisioning, configuration, and operations of virtual and physical infrastructure in the scrapyard.
- System Admin: Privileged user responsible for the maintenance and operations of the software layer.
- kit: physical or virtual component to be registered in pez
-
type: (vague) a piece, or group, of
kit
that can be leased - item: (vague) a specific instance of a type
-
lease: finite contract binding a
user
to anitem
of a giventype
- Register/Unregister
kit
- Allocate/Deallocate
kit
- View unallocated
kit
- Create/Update/Delete
type
- Create/Update/Delete
item
- View leased/unleased
items
- View
items
bytype
- View
leases
- View pending
leases
- View
types
- View available
types
- View
type
details - Lease
type
- View my
leases
- Renew/Extend
lease
- Cancel
lease
- (item-specific functions available only to lessee?)
- necessary role?
- Can a user have more than one lease? (Assume yes)
- Will pez offer any kind of operational metrics?
- Is there an approval process needed for a lease?
- How much of an
item
can be created programmatically? Or is it more of a function to just identifying what kit is associated with anitem-guid
? - What is the rationale for separating the inventory and dispenser APIs as separate libraries?