-
Notifications
You must be signed in to change notification settings - Fork 1
Entities
Antonius Cezar Hegyes edited this page Jan 13, 2015
·
7 revisions
The following URL structure exists for this controller:
api/Courses/{courseId}/Entities/{action}/{entityId : optional}
The following calls are currently available for the Entities controller:
- Description: Retrieves a list of all available entities.
- Response Format: JSON of IEnumerable<EntityModel>
- Parameters: None
- Permissions: CanSeeAllEntities
- Description: Retrieves a list of all available entities for this course.
- Response Format: JSON of IEnumerable<EntityModel>
- Parameters: {courseId} of type int
- Permissions: CanSeeEntities
- Description: Retrieves the details of a particular entity.
- Response Format: JSON of EntityModel
- Parameters: {courseId} of type int and {entityId} of type int
- Permissions: CanSeeEntities
- Description: Retrieves the details of the Task to which a particular entity belongs to.
- Response Format: JSON of TaskModel
- Parameters: {courseId} of type int and {entityId} of type int
- Permissions: CanSeeTasks
- Description: Add a new entity.
- Response Format: JSON of the added EntityModel
- Parameters: {courseId} of type int and {entity} of type EntityModel (JSON in the body of the message)
- Permissions: CanCreateEntities
- Description: Update an existing entity.
- Response Format: JSON of the updated EntityModel
- Parameters: {courseId} of type int and {entityId} of type int and {entity} of type EntityModel (JSON in the body of the message)
- Permissions: CanUpdateEntities
- Description: Delete an existing entity.
- Response Format: HttpStatusCode
- Parameters: {courseId} of type int and {entityId} of type int
- Permissions: CanDeleteEntities