Skip to content
This repository has been archived by the owner on Dec 17, 2019. It is now read-only.

Fix #158: Update JSON formats to latest OBI spec #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lmorchard
Copy link
Contributor

  • Update OBI serialization in Badge and Award to match the latest spec
  • {badge,award}.get_absolute_url has a format='json' option
  • New URL at issuer.json that serves up the BADGER_SITE_ISSUER data
  • Updated BADGER_SITE_ISSUER setting
  • Tests

* Update OBI serialization in Badge and Award to match latest spec:
    https://github.com/mozilla/openbadges-specification/blob/master/Assertion/latest.md

* {badge,award}.get_absolute_url has a format='json' option

* New URL at issuer.json that serves up the BADGER_SITE_ISSUER data

* Updated BADGER_SITE_ISSUER setting
    * See test_settings.py for an example

* Tests
"name": "Example",
"url": "http://example.com",
"description": "This is an example organization",
"email": "me@example.com"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oo--good changes.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having said that, part of me thinks we shouldn't provide a default here. Instead we should throw a YOIMPROPERLYCONFIGUREDERRORRZ kind of thing.

@willkg
Copy link
Member

willkg commented Jan 31, 2014

Finished going through this. After you land this, I'll go through and make issues out of whatever looked funny. I don't think any of my comments are things that need to change right now.

One thing I didn't do was go read through the OBI spec to make sure it's implemented right.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants