Open mjstealey opened 2 years ago
/resources
TODO - separate AFRN from APRN in the models (see diagram attached below)
/resources/{int:pk}
/resources/{int:pk}/experiments
/resources/{int:pk}/projects
name
resource_type
operator
resource_creator
is_active
is_deleted
--- /resources description: - string is_active: - boolean location: - string name: - string resource_class: - string resource_id: - int resource_mode: - string resource_type: - string --- /resources/{int:pk} created_by: - int created_date: - string description: - string hostname: - string ip_address: - string is_active: - boolean is_deleted: - boolean (only return when resource has been deleted) location: - string name: - string ops_notes: - string resource_class: - string resource_id: - int resource_mode: - string resource_type: - string --- /resources/{int:pk}/experiments description: - string experiment_creator: - int experiment_id: - int experiment_state: - string is_canonical: - boolean is_retired: - boolean name: - string --- /resources/{int:pk}/projects description: - string is_public: - boolean name: - string project_creator: - int project_id: - int
ARFN vs ARPN
/resources
TODO - separate AFRN from APRN in the models (see diagram attached below)
Endpoints
/resources
paginated/resources/{int:pk}
/resources/{int:pk}/experiments
/resources/{int:pk}/projects
Functions
name
,resource_type
- open to any active useroperator
onlyoperator
onlyresource_creator
only (is_active
= False,is_deleted
= True) - soft deleteFields