Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add roles and verbs #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 27 additions & 16 deletions teams/team-DMBR/names.txt
Original file line number Diff line number Diff line change
@@ -1,52 +1,63 @@
Package Delivery Service

--- Roles ---
Customer
Manager
Employee
Admin
Internal = (Manager, Employee, Admin)


Distribution Center - Facility Description, Docks, belts
========================================================
dmbrshipping/distributioncenter
dmbrshipping/distributioncenter/<id>/?<dock/other internal things>
dmbrshipping/distributioncdnter/<id>/zipcodes
dmbrshipping/distributioncenter/country/<state,province>
dmbrshipping/distriburioncenter/region/<name>
Customer - GET/Manager - GET/Employee - GET/Admin- GET,PUT,POST: dmbrshipping/distributioncenter
Customer - GET/Manager - GET/Employee - GET/Admin - GET,PUT,POST,DELETE: dmbrshipping/distributioncenter/<id>/
no Customer: dmbrshipping/distributioncenter/<id>/<dock/other internal things>
Everybody - GET: dmbrshipping/distributioncenter/<id>/zipcodes
Everybody - GET: dmbrshipping/distributioncenter/country/<state,province>
Everybody - GET: dmbrshipping/distriburioncenter/region/<name>

Routes
=====
dmbrshipping/routes
dmbrshipping/routes/?source/?sink -- service
Manager/Employee/Admin: dmbrshipping/routes
dmbrshipping/routes;source='';sink='' -- service

Tracking - exceptions, lost, destroyed/damaged, history
=======================================================
dmbrshipping/track/<id>
System - POST: dmbrshipping/track
Everybody - GET: dmbrshipping/track/<id>

Contracted Package Delivery Services
====================================
dmbrshipping/contractor
Manager - GET/Admin - GET,PUT,POST: dmbrshipping/contractor
Manager - GET/Admin - GET,PUT,POST,DELETE: dmbrshipping/contractor/<id>

Customers - Shipper, Receiver
=============================
dmbrshipping/customer
dmbrshipping/customer/<id>
dmbrshipping/customer/track/
Customer - POST/Internal - GET,POST: dmbrshipping/customer
Customer - GET,PUT,PATCH,DELETE if self/Internal - GET,PUT,PATCH,DELETE: dmbrshipping/customer/<id>
Everybody - GET/: dmbrshipping/customer/<id>/track/

Package Types
=============
dmbrshipping/package/
Everybody - GET/Admin - POST: dmbrshipping/package/
dmbrshipping/package/<type>

Service Types
=============
dmbrshipping/service
Everybody: dmbrshipping/service
dmbrshipping/service/<type>

Trucks/Planes/Ships/Trains
==========================
dmbrshipping/fleet
Employee/Manager/Admin: dmbrshipping/fleet
dmbrshipping/fleet/<id>
dmbrshipping/fleet/<id>/maintenance
dmbrshipping/fleet/type

Employees - Drivers/Support Center/Dist Center Workers
======================================================
dmbrshipping/employee
Employee/Manager/Admin: dmbrshipping/employee
dmbrshipping/employee/<id>
dmbrshipping/employee/type