|
|
|
SOLID is a standard that universalizes API
|
|
|
|
|
|
|
|
Here is an example of our API :
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/users/jbpasquier/",
|
|
|
|
"first_name": "Jean-Baptiste",
|
|
|
|
"groups": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/users/jbpasquier/groups/",
|
|
|
|
"@type": "ldp:Container",
|
|
|
|
"ldp:contains": [],
|
|
|
|
"permissions": [
|
|
|
|
{
|
|
|
|
"mode": {
|
|
|
|
"@type": "view"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"last_name": "Pasquier",
|
|
|
|
"username": "jbpasquier",
|
|
|
|
"email": "contact@jbpasquier.eu",
|
|
|
|
"account": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/accounts/jbpasquier/"
|
|
|
|
},
|
|
|
|
"chatProfile": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/chatprofiles/jbpasquier/"
|
|
|
|
},
|
|
|
|
"name": "Jean-Baptiste Pasquier",
|
|
|
|
"projects": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/users/jbpasquier/projects/",
|
|
|
|
"@type": "ldp:Container",
|
|
|
|
"ldp:contains": [],
|
|
|
|
"permissions": []
|
|
|
|
},
|
|
|
|
"circles": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/users/jbpasquier/circles/",
|
|
|
|
"@type": "ldp:Container",
|
|
|
|
"ldp:contains": [],
|
|
|
|
"permissions": []
|
|
|
|
},
|
|
|
|
"inbox": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/users/jbpasquier/inbox/",
|
|
|
|
"@type": "ldp:Container",
|
|
|
|
"ldp:contains": [],
|
|
|
|
"permissions": [
|
|
|
|
{
|
|
|
|
"mode": {
|
|
|
|
"@type": "add"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"skills": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/users/jbpasquier/skills/",
|
|
|
|
"@type": "ldp:Container",
|
|
|
|
"ldp:contains": [],
|
|
|
|
"permissions": [
|
|
|
|
{
|
|
|
|
"mode": {
|
|
|
|
"@type": "view"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"jobOffers": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/users/jbpasquier/jobOffers/",
|
|
|
|
"@type": "ldp:Container",
|
|
|
|
"ldp:contains": [],
|
|
|
|
"permissions": [
|
|
|
|
{
|
|
|
|
"mode": {
|
|
|
|
"@type": "view"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"profile": {
|
|
|
|
"@id": "https://api.test-paris.happy-dev.fr/profiles/jbpasquier/"
|
|
|
|
},
|
|
|
|
"@type": "foaf:user",
|
|
|
|
"@context": [
|
|
|
|
"https://cdn.happy-dev.fr/owl/hdcontext.jsonld",
|
|
|
|
{
|
|
|
|
"get_full_name": "rdfs:label"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"permissions": [
|
|
|
|
{
|
|
|
|
"mode": {
|
|
|
|
"@type": "view"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
The page is still in process and constructed in french.
|
|
|
|
You can participate to [the review](https://docs.google.com/document/d/1l70VbMxgGPAVuyT9_MtxLHhnELBE__hl40gE7AaJvk8/edit?usp=sharing)
|
|
|
|
|