assemblee-virtuelle / assemblee-virtuelle/semapps
Les données que j'ajoute via un post ActivityStreams ne mette pas à jour l'interface
- Dominant language
- TypeScript
- Stars
- 103
- Forks
- 14
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
Hello !
J'ai suivis la doc jusqu'[ici](https://semapps.org/docs/guides/ldp-server#add-data-with-the-ldp-server).
J'utilise Postman et j'ai réussi à poster Guillaume Cousin qui apparait sur http://localhost:3000/persons/ mais cette donnée ne s'affiche pas sur http://localhost:5000/#/Person qui n'affiche que les données remplit à partir de l'interface (Ici Folie Baila).
En regardant l'API je me suis dit que que la documentation n'était peut être pas à jour car le format de donnée était différent :
```json
{
"@context": "http://localhost:3000/context.json",
"@id": "http://localhost:3000/persons",
"@type": [
"ldp:Container",
"ldp:BasicContainer"
],
"ldp:contains": [
{
"@id": "http://localhost:3000/persons/6070479be5df2128471d173d",
"@type": "foaf:Person",
"foaf:familyName": "Folie",
"foaf:firstName": "Baila"
},
{
"@id": "http://localhost:3000/persons/60704787e5df2128471d173c",
"@type": "Person",
"name": "Guillaume Cousin"
}
]
}
```
Alors j'ai essayé de poster avec un autre format que celui proposé par la documentation.
```json
POST /persons HTTP/1.1
Host: localhost:3000
Content-Type: application/json
Accept: */*
Content-Length: *
{
"@type": "foaf:Person",
"foaf:familyName": "Plastic",
"foaf:firstName": "Gogo"
}
```
Mais rien n'y fait
```json
{
"@context": "http://localhost:3000/context.json",
"@id": "http://localhost:3000/persons",
"@type": [
"ldp:Container",
"ldp:BasicContainer"
],
"ldp:contains": [
{
"@id": "http://localhost:3000/persons/607049f3e5df2128471d1741",
"@type": "foaf:Person",
"foaf:familyName": "Plastic",
"foaf:firstName": "Gogo"
},
{
"@id": "http://localhost:3000/persons/6070479be5df2128471d173d",
"@type": "foaf:Person",
"foaf:familyName": "Folie",
"foaf:firstName": "Baila"
},
{
"@id": "http://localhost:3000/persons/60704787e5df2128471d173c",
"@type": "Person",
"name": "Guillaume Cousin"
}
]
}
```
Le format est cette fois identique mais rien ne s'affiche à part Folie Baila .. Une idée ?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the POST to localhost:3000/persons with the documented payload, then compare the /persons response with what localhost:5000/#/Person loads. Done means a person created through the API appears in the interface; inspect the LDP-server guide and the Person view entry point while tracing that discrepancy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postman, typescript
- Domain
- api, full-stack
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100