Skip to content
This repository was archived by the owner on Apr 18, 2019. It is now read-only.

API Docs

Michael Lin edited this page Apr 6, 2019 · 10 revisions

URL

Frontend

https://cmput404-front.herokuapp.com/

Backend API

https://cmput404-front.herokuapp.com/api

Authentication

Basic authentication

API Documentation

https://www.notion.so/Project-API-ba98feba46c94104aba693a72575fc82

https://gist.github.com/ExiaSR/0e8f15923a3e39d66b896bfbd0641c94 (Preview only)

Cross-server Documentation

https://www.notion.so/michaellinlzc/404-Server-Buddy-ac4150ab611c45c3a9d7841ad8023fbf

Testing Instruction

Test FOAF

  1. Michael (Test) and Michael are friend
  2. Michael (Staging) and Michael are also friend
  3. Therefore, Michael (Test) and Michael (Staging) should see each other FOAF posts.

Links

Credential

  • username: michael
  • password: michael19961206

Test unlisted post

  1. Create a unlisted post, any visibility setting is fine.
  2. Wait till the background refresh is done, or force refresh. The post will not show up in the stream.
  3. Go to upper-right corner, click Profile. The unlisted post will show up. However, if the user seeing the page is not the author himself/herself, unlisted post will not be shown.
  4. Example: https://cmput404-front.herokuapp.com/posts/167

How to revoke access of foreign servers?

For example: Go to https://cmput404.herokuapp.com/admin/auth/user/35/change/, remove check of Active. Or just delete the user for good.

username: admin password: K6v7g6B56NX2FxaP3yrM

Test private post sharing

  1. Create a new post, select PRIVATE
  2. Select user from the Share with drop down list
  3. Done
  4. Example, https://cmput404-front.herokuapp.com/posts/172
Clone this wiki locally