Added basic json test resource

This commit is contained in:
Xavi Aracil 2022-11-22 13:57:35 +01:00
parent b5ab04da4c
commit 21fe60f21b
4 changed files with 58 additions and 14 deletions

View File

@ -40,4 +40,12 @@ public class Samples {
public final static Sample SIMPLE_JWT = new Sample("clr20/simple.jwt", true);
}
}
public static final class OB20 {
public static final class JSON {
public final static Sample SIMPLE_ASSERTION_JSON = new Sample("ob20/basic-assertion.json", true);
public final static Sample SIMPLE_BADGECLASS_JSON = new Sample("ob20/basic-badgeclass.json", true);
public final static Sample SIMPLE_ISSUER_JSON = new Sample("ob20/basic-issuer.json", true);
}
}
}

View File

@ -0,0 +1,18 @@
{
"@context": "https://w3id.org/openbadges/v2",
"type": "Assertion",
"id": "https://example.org/beths-robotics-badge.json",
"recipient": {
"type": "email",
"hashed": true,
"salt": "deadsea",
"identity": "sha256$ecf5409f3f4b91ab60cc5ef4c02aef7032354375e70cf4d8e43f6a1d29891942"
},
"image": "https://example.org/beths-robot-badge.png",
"evidence": "https://example.org/beths-robot-work.html",
"issuedOn": "2016-12-31T23:59:59Z",
"badge": "https://example.org/robotics-badge.json",
"verification": {
"type": "hosted"
}
}

View File

@ -0,0 +1,10 @@
{
"@context": "https://w3id.org/openbadges/v2",
"type": "BadgeClass",
"id": "https://example.org/robotics-badge.json",
"name": "Awesome Robotics Badge",
"description": "For doing awesome things with robots that people think is pretty great.",
"image": "https://example.org/robotics-badge.png",
"criteria": "https://example.org/robotics-badge.html",
"issuer": "https://example.org/organization.json"
}

View File

@ -0,0 +1,8 @@
{
"@context": "https://w3id.org/openbadges/v2",
"type": "Issuer",
"id": "https://example.org/organization.json",
"name": "An Example Badge Issuer",
"url": "https://example.org",
"email": "contact@example.org"
}