mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-01 02:49:42 +00:00
Two new routes: * `GET /{_locale}/person/api/1.0/accompanying-course/{parcours_id}/show.json`: get a json representation for a course * `POST /{_locale}/person/api/1.0/accompanying-course/{parcours_id}/participation.json`: add a particitipation to course. Usage: `curl -v --cookie "PHPSESSID=fed98aa23e40cb36e630f84155aea3bb;" -X POST --data '{ "id": 481 }' http://localhost:8001/fr/person/api/1.0/accompanying-course/270/participation.json` Will add the person with id "481" to the course.
14 lines
423 B
YAML
14 lines
423 B
YAML
---
|
|
services:
|
|
Chill\MainBundle\Serializer\Normalizer\CenterNormalizer:
|
|
tags:
|
|
- { name: 'serializer.normalizer', priority: 64 }
|
|
|
|
Chill\MainBundle\Serializer\Normalizer\DateNormalizer:
|
|
tags:
|
|
- { name: 'serializer.normalizer', priority: 64 }
|
|
|
|
Chill\MainBundle\Serializer\Normalizer\UserNormalizer:
|
|
tags:
|
|
- { name: 'serializer.normalizer', priority: 64 }
|