Commit Graph

79 Commits

Author SHA1 Message Date
jygaulier
555646232e PHRAS-4085_data-volumes-api (#4529)
* new route `/api/v3/monitor/data/?oauth_token=xxx&blocksize=16ko`

* add `unit` parameter for size restults ('', 'o', ''ko', 'mo', 'go'), default '' (=octets, same as 'o')

* new units "octet", "octets"

* fix round error (don't sum rounded values: round the real sum)

* add infos about downloads;
round sizes to 2 decimals

* add `...&details=1` url parameter to get values by collection and subdef name

* add column size in LazaretFiles table

add command bin/maintenance lazaret:set_sizes

* add api monitor data by databox

* fix size
2024-07-17 17:25:42 +02:00
jygaulier
dc80246f56 PHRAS-3770_quarantine-enhancement (#4352)
* wip

* add: quarantine: when "adding", can copy metadata from the selected record

* fix failing test ; add test for "add & copy caption" (to be completed with field values...)

* wip

* add: quarantine: when "adding", can copy metadata from the selected record

* fix failing test ; add test for "add & copy caption" (to be completed with field values...)

* fix add button (did nothing when no doc selected at right) ; add clickable label on "copy meta" ckbox

* fix missing sb-off icons
2023-11-16 17:32:19 +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
aynsix
e882021019 PHRAS-3642 api return subdefs 2022-02-24 16:07:54 +03:00
aynsix
7551273b1d add api-subdef_service config to enable/disable this endpoint 2021-11-19 10:43:40 +03:00
jygaulier
ac3aa6e1ba PHRAS-3564
fix video work location
subdefs posted
result set with sent/failed & durations
add test callback route
2021-11-17 15:16:24 +01:00
jygaulier
0553f6152c PHRAS-3564 WIP
create subdefs (on tmp) from file passed as upload or reference
route /api/v3/subdefs_service/{{base_id}}
subdef setttings comes from base_id
todo : pass settings in json ; remove base_id from route
todo : return files by upload
2021-11-17 15:16:24 +01:00
jygaulier
7c01c34dfc - add timing debug, disable permalinks injection to es 2020-10-27 17:18:37 +01:00
jygaulier
d0283913de WIP / DEBUG
- add stopwatches to find slow parts.
- to test : add api-v3/searchraw ; same as "search", but returns raw es docs (shortest way). No objects, no fractal.
2020-10-21 20:07:11 +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
18f7a658ed change : removed "/setmetadatas" from route, the http verb "PATCH" on "record" entity is ok
fix : unknown field now throws exception (no more erase all...)
add : set "base_id":x to change collection
cleanup : removed unused parm to recordadapter::move_to_collection()
2020-06-22 14:40:27 +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
jygaulier
b67c37c340 WIP 2020-06-02 20:26:30 +02:00
aynsix
b2bb0c612e fix api upload/enqueue 2020-05-19 15:42:02 +03:00
aynsix
bb2123df5a include plugin worker in phraseanet core 2020-05-12 18:06:45 +03:00
aynsix
f475a5c925 fix api/v3 api_version 2019-12-06 14:24:03 +04:00
aynsix
e4b29d70c5 route search and storie on api/v3 2019-12-05 12:30:23 +04:00
aynsix
530397db00 do no use header application/vnd.phraseanet.story-paginate 2019-12-04 10:17:59 +04:00
aynsix
c9356ec206 max_items depends on header application/vnd.phraseanet.story-paginate 2019-11-28 18:15:55 +04:00
nmaillat
98660a4aaf bump api version to 2.0.0 2018-07-18 23:23:59 +02:00
aina-esokia
ff67cd5ac6 port authorize with providers 2018-05-29 17:47:19 +04:00
aina-esokia
d86fd39380 port to 4.1 api route me/collections 2018-05-10 10:58:14 +04:00
Sandeep
c75d94a321 PHRAS-1911 : fix route me/structures 2018-05-02 12:21:18 +04:00
Sandeep
5de988299d PHRAS-1911-add route return list documentary fields 2018-03-16 15:01:20 +04:00
KallooaSan
dbaba974ae Add extension to file path on api upload for extension-mapping (#2481) 2018-02-20 11:13:28 +01:00
jygaulier
a70bf2fc70 PHRAS-1304_AUTO-COMPLETION_MASTER (#2061)
* PHRAS-1304_AUTO-COMPLETION_MASTER
ported from 4.0

* PHRAS-1304_AUTO-COMPLETION_MASTER
fix

* PHRAS-1304_AUTO-COMPLETION_MASTER
fix

* PHRAS-1304_AUTO-COMPLETION_MASTER
bump php version to 5.5.31 (5.5.21 is obsolete in cicleci)

* PHRAS-1304_AUTO-COMPLETION_MASTER
bump php version to 5.5.31 : php.ini moved in circelci

* PHRAS-1304_AUTO-COMPLETION_MASTER
add zmq & date to php for circleci

* PHRAS-1304_AUTO-COMPLETION_MASTER
add zmq

* PHRAS-1304_AUTO-COMPLETION_MASTER
bump amqp

* PHRAS-1304_AUTO-COMPLETION_MASTER
downgrade amqp to 1.2 to test compilation against old librabbit 0.4 (ubuntu)

* PHRAS-1304_AUTO-COMPLETION_MASTER
add amqp.so to php.ini, (re)bump amqp to 1.6

* PHRAS-1304_AUTO-COMPLETION_MASTER
build rabittmq from git

* PHRAS-1304_AUTO-COMPLETION_MASTER
build rabittmq from git again

* PHRAS-1304_AUTO-COMPLETION_MASTER
build rabittmq from git again and again

* PHRAS-1304_AUTO-COMPLETION_MASTER
fix test on media rotation 600*400 -> 400*599 !!!

* PHRAS-1304_AUTO-COMPLETION_MASTER
restore facebook sdk to 4.0.1 due to mistake

* PHRAS-1304_AUTO-COMPLETION_MASTER
deleted unwanted file
2017-02-06 18:26:56 +01:00
Thibaud Fabre
97f2e66698 Merge 4.0 branch 2016-12-05 17:04:54 +01:00
Thibaud Fabre
b5bbb1851f Merge branch 4.0 2016-12-05 15:26:48 +01:00
Thibaud Fabre
199b5b1c46 Inject base order controller dependencies 2016-10-25 13:55:34 +02:00
Thibaud Fabre
f2b956b015 Merge pull request #1968 from jygaulier/PHRAS-946_delete-record-api
PHRAS-946_delete-record-api
2016-09-29 17:41:24 +02:00
Jean-Yves Gaulier
c6186abe56 PHRAS-946_delete-record-api
- add : api route to delete record : verb DELETE ; /api/v1/records/{{databox_id}}/{{record_id}}
2016-09-29 15:54:04 +02:00
Thibaud Fabre
f62c22bc5c Move setting to registry and form type 2016-09-28 20:58:26 +02:00
Thibaud Fabre
7cf5d28a99 Fix configuration setting access 2016-09-28 20:25:25 +02:00
Thibaud Fabre
c13e086120 Add option to disable API via configuration setting 2016-09-28 20:25:25 +02:00
Benoît Burnichon
2547ef14fa Add Archive download to Api v2 orders 2016-05-20 13:16:41 +02:00
Benoît Burnichon
1e18b3e69f This is a combination of 33 commits.
- Squashed Pull request #1730
- Squashed Pull request #1741
- Squashed Pull request #1742
- Squash merge branch 4.0
- Squashed Pull request #1744
- Squashed Pull request #1746
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed merge branch 4.0
- Squashed Pull request #1758
- Avoid using imagine/imagine alias as it is causing install issues
- Squashed merge branch 4.0
- Squashed Pull request #1763
- Squashed merge branch 4.0
- Squash of 6 commits
- Squashed merge branch 4.0
- This is a combination of 2 commits.
- Squashed Pull request #1775
- Squashed Pull request #1777
- Squashed Pull request #1779
- Squashed Pull request #1780
- Squashed Pull request #1782
- Adds a Pull request template
- Squased Pull request #1783
- Squash Pull request #1786
- Squashed Pull request #1796
- Squashed merge branch 4.0
- Squash Pull request #1791
- Squashed merge branch 4.0
- Squashed Pull request #1808
- Squashed Pull request #1811
- Squashed Pull request #1809
2016-04-20 16:22:14 +02:00
Jean-Yves Gaulier
1c63194400 PHRAS-1065 #time 1h
backport PHRAS-947
2016-04-06 19:10:54 +02:00
Benoît Burnichon
59a334ea32 New search style 2016-02-22 14:07:16 +01:00
Benoît Burnichon
51023c5533 bump copyright year 2016-01-05 13:38:14 +01:00
Benoît Burnichon
30b8ec66ed Add API add/remove elements. Change prod basket management 2015-12-22 17:44:34 +01:00
Benoît Burnichon
985ec4a491 Extract JsonBodyHelper and use it 2015-12-22 14:24:32 +01:00
Benoît Burnichon
4a5399d46b Fixup inverted method names in v2 routing 2015-12-22 14:19:35 +01:00
Benoît Burnichon
b2ee2668a1 Change to be able to return called API version 2015-12-22 14:19:34 +01:00
Benoît Burnichon
f684550ab1 Merge pull request #1555 from bburnichon/rebase-web-gallery-v4
Rebase web gallery v4
2015-11-09 17:48:22 +01:00
Thibaud Fabre
51560f4c86 PHRAS-792 Require access to admin module and user management 2015-10-30 14:48:53 +01:00
Benoît Burnichon
f9c02131f1 Remove API after middleware and set token in session 2015-10-29 11:44:10 +01:00
Benoît Burnichon
a1b467d571 Make it possible to use OAuth outside /api 2015-10-28 17:49:11 +01:00
Thibaud Fabre
a903594fbc Add API get collection route
Signed-off-by: Benoît Burnichon <bburnichon@alchemy.fr>
Forward port from 3.8
2015-10-27 19:35:51 +01:00