Commit Graph

9 Commits

Author SHA1 Message Date
Aina Sitraka
a29aa3355b PHRAS-3770: generate translation (#4414)
* generate translation

* fix
2023-11-17 16:04:09 +01:00
jygaulier
179431d1b5 PHRAS-3931_phraseanet_local_id_in_api (#4400)
* add "resource_id" to record / story ; formula defined into InstanceIdAware.php

* fix tests

* fix tests

* switch to main/instance_id
2023-10-30 17:15:04 +01:00
jygaulier
e7027c7220 PHRAS-3800_xss (#4219)
* add encode option to record::get_title ; render preview.record_title in twig

* html-escape facet values
2023-03-15 11:05:34 +01:00
jygaulier
12cb9b582b PHRAS-3584
add databox.record.cover_record_id
add get/set coverRecordId() to record adapter
include cover_record_id to api results (V1 & V3)
2021-11-25 11:52:11 +01:00
jygaulier
e79f2cb4f2 add:
- multiple pagination methods
- "include" parameter in /search route :
-- facets : facets are no more returned by default
-- results.stories.children : to populate the children of stories
- "story_children_limit" parameter in /search route
  will limit the number of children populated by story
- "count" (for results) and "children_count" (for stories in results) is the number of items in the current page
- "total" (for results) and "children_total" (for stories in results) is the total number of items

todo: swagger doc (but impossible to describe related/excluded parameters (like pagination methods in /search)
2020-09-22 21:30:19 +02:00
jygaulier
236a4a20ac - add : route GET:stories/.../.../children (wip)
- change : now GET record can return a story (return r.is_story = true); GET story will only return a story.
2020-09-17 18:57:13 +02:00
jygaulier
99be4ea1d3 WIP DO NOT MERGE
- add : route GET:records
- add : route POST:records (can create a record without document)
- add : json can be passed in body OR in a multiparm parm named "body" (to allow upload of file along with json)
- change : story content (children) is now a list of urls (=get action on each child)
2020-09-17 18:57:13 +02:00
jygaulier
cdadb3acc4 WIP
refacto common code
2020-06-04 14:08:08 +02:00
jygaulier
9272f3642f WIP
refacto : explode v3 controller, fix warnings
2020-06-03 20:32:10 +02:00