Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
{
    "activity" : {
        "icon": "icon-comment-alt",
		"actor": {
        	"id" : "department identifier",
        	"objectType": "person",
        	"displayName": "Department Name",
        	"author" : {
            	"id" : "kName",
            	"displayName" : "FirstName LastName"
        	},
			"image" : {
				"color" : "#f1c40f"
			}
    	},
    	"verb": "post",
    	"title": "Test Event",
    	"object": {
        	"ucdSrcId" : "content identifier",
        	"objectType": "notification",
       		"content": "This is a test notification",
			"contentImage" : {
				"source" : "aggiefeed",
   				"dimensions" : {
       				"normal" : { 
           				"url": "/content/uploads-normal/someId.jpg",
           				"width": 400,
           				"height": 280
       				},
       				"high" : {
           				"url": "/content/uploads-hight/someId.jpg",
           				"width": 650,
           				"height": 460
       				}
			},
        	"ucdEdusModel" : {
       	    	"url" : "http://ucdavis.edu",
            	"urlDisplayName" : "UC Davis",
				"event" : {
					"location": "Event Location",
					"hasStartTime" : true,
					"startDate": "date string",
					"endDate": "date string",
					"isAllDay": false,
					"iCalendar" : "iCal string",
					"addToGoogleCalendar": "string"
				}
        	},
			"location" : {
				"displayName": "Mount Everest",
				"geo" : {
					"latitude": "27.9881",
					"longitude": "86.9253"
				},
				"geometry" : {
					"type": "Point",
					"coordinates": [86.9253, 27.9881]
				}
			}
    	},
    	"to" : [
        	{
				"id": "<kName>",
				"g": false,
				"i": false
			}
    	],
    	"ucdEdusMeta" : {
        	"labels" : ["~academic", "some-label"],
        	"startDate" : "date string",
        	"endDate" : "date string"
    	}
}}

 


Include Page
Aggiefeed Activity Model
Aggiefeed Activity Model

Methods:

...

...


METHOD

HTTP METHOD

URI

Comments

get

GET

/api/v1/activity

Get selected activities based on the used query string parameters

create

POST

/api/v1/activity

Create an activity

update

PUT

/api/v1/activity

Update an activity

delete

DELETE

/api/v1/activity

Delete an activity

...