A P I - E N T W U R F

Zur Authenfizierung einer App:
entweder:
    Query-Parameter ?access_token=MY.APP.ACCESS.TOKEN
oder:
    HTTP-Header Authentication

POST   /api/v1/app
post: url=https://teamwiki.de/&icon=https://teamwiki.de/favicon.ico&title=TeamWiki
reponse: { id: '1234', api_access_token: '1234.5678' }

GET   /api/v1/app
reponse: { id: '1234', api_access_token: '1234.5678' }


POST   /api/v1/event
post: area=https://teamwiki.de/profile/teamname&min_level=7&title=Wichtiges%20Event
response: { id: '1234567890' }

GET    /api/v1/area?url=https://teamwiki.de/profile/teamname
response: {
  url: 'https://teamwiki.de/profile/teamname', app_id: '1234', 
  permissions: [
    { user: 'https://teamwiki.de/profile/username', level: 12 }
  ]
}

POST   /api/v1/area
post: url=https://teamwiki.de/profile/teamname
response: { success: true }

POST   /api/v1/area/permit
post: area=https://teamwiki.de/profile/teamname&user=https://teamwiki.de/profile/username&level=12
response: { success: true }

DELETE /api/v1/area/permit
post: area=https://teamwiki.de/profile/teamname&user=https://teamwiki.de/profile/username
response: { success: true }

GET    /api/v1/stream/:id
GET    /api/v1/stream/:id/socketToken
POST   /api/v1/stream/:id/area



GET    /
GET    /streams
GET    /timeline
GET    /stream/:id/timeline




Kommentare