Граф коммитов

177 Коммитов

Автор SHA1 Сообщение Дата
Carifio24 434066f3c0 Add some tests of image permissions validation. 2023-05-22 11:23:14 -04:00
Carifio24 edc3339cf1 Base our sanitization settings off of defaults. Allow em tag. 2023-05-22 11:22:46 -04:00
Carifio24 86d04959ac Sanitize credits HTML. 2023-05-18 15:26:51 -04:00
Carifio24 6b4d20d2a7 Valid SPDX license expressions in image permissions. 2023-05-18 13:57:10 -04:00
Carifio24 dbaf29d81d Add dataclass for image permissions. 2023-05-18 12:32:07 -04:00
Peter Williams b7a065c728
Merge pull request #19 from pkgw/scene-edit
Add current scene editing APIs
2023-05-08 17:12:53 -04:00
Peter Williams 795a620a81 Partially implement the new `background` field of scene info
We still need to provide people with a way to set the background, etc.
2023-05-08 16:23:32 -04:00
Peter Williams ff5b012195 Update scene "place" definition to track evolving data model 2023-05-06 15:50:56 -04:00
Peter Williams b682dcf15c wwt_api_client/constellations: add editing of scene outgoing_url 2023-05-06 14:23:32 -04:00
Peter Williams 9ab2bed4e9 wwt_api_client/constellations/scenes.py: add the main PATCH endpoint 2023-05-06 14:08:43 -04:00
Peter Williams d885314443
Merge pull request #17 from Carifio24/scene-previews
Update Constellations APIs to account for scene previews
2023-05-03 00:54:31 +00:00
Jon Carifio c0ad06fc93 Add ScenePreviews class and update SceneHydrated. 2023-05-02 00:40:26 -04:00
Peter Williams 57aee803a9
Merge pull request #16 from pkgw/scene-editing
wwt_api_client/constellations/scenes.py: add SceneClient.permissions()
2023-04-20 13:28:46 +00:00
Peter Williams 85d750b772 wwt_api_client/constellations/scenes.py: add SceneClient.permissions() 2023-04-19 15:25:47 -04:00
Peter Williams dc45801b41
Merge pull request #15 from pkgw/dashboard-apis
Expose more dashboard APIs
2023-04-19 18:57:46 +00:00
Peter Williams 11c4d4055b wwt_api_client/constellations/handles.py: add HandleClient.scene_info() 2023-04-19 13:14:43 -04:00
Peter Williams ee3cd6cef3 wwt_api_client/constellations/handles.py: add HandleClient.stats() 2023-04-19 11:36:23 -04:00
Peter Williams 3e666c043e
Merge pull request #14 from pkgw/perms-apis
Implement some APIs for permissions and administering handles
2023-04-19 15:08:15 +00:00
Peter Williams 01b409814c wwt_api_client/constellations/handles.py: add the main PATCH endpoint 2023-04-19 10:51:05 -04:00
Peter Williams c853773567 wwt_api_client/constellations/handles.py: add permissions API 2023-04-19 10:51:05 -04:00
Peter Williams 4ca6eaa5ea
Merge pull request #13 from pkgw/timelines
Add support for home and per-handle timelines
2023-03-31 21:29:39 +00:00
Peter Williams 4d633ad4c5 Add support for home and per-handle timelines 2023-03-31 16:02:35 -04:00
Peter Williams e3d66d9fd7
Merge pull request #12 from pkgw/more-constellations
More Constellations work
2023-03-31 02:14:45 +00:00
Peter Williams 49d6f12959 GET /scene/:id now returns "hydrated" scene content info 2023-03-30 16:08:59 -04:00
Peter Williams ea6865328b Document and expose the GET /scene/:id/place.wtml endpoint 2023-03-30 13:19:00 -04:00
Peter Williams 7c1f8b757a wwt_api_client/constellations/handles.py: heyyoo fix H2R conversion 2023-03-30 13:02:12 -04:00
Peter Williams 823614e4fe Add a Constellations image client and expose WTML retrieval 2023-03-30 12:33:32 -04:00
Peter Williams e4990c2dc2 Add forgotten offset_x/y fields to Constellations image WWT settings! 2023-03-30 11:58:27 -04:00
Peter Williams bb3a9f9ac6 Correct type of /images/find-by-legacy-url: POST not GET 2023-03-30 11:35:37 -04:00
Peter Williams 535d08d5ec Document and implement the GET /handle/:handle endpoint 2023-03-30 10:51:32 -04:00
Peter Williams 70404f1719 Reorganize and implement GET /scene/:id
Group all of the Constellations dataclasses in
`wwt_api_client.constellations.data`, which avoids problems about
deciding where to put various classes and avoiding circular
dependencies.

Document the new `GET /scene/:id` endpoint.

Create a new `wwt_api_client.constellations.scenes`, analogous to
`wwt_api_client.constellations.handles`, with a client class specific to
individual scenes. Add a `get()` method to get scene info.
2023-03-30 10:21:48 -04:00
Peter Williams a81613b9ee
Merge pull request #11 from pkgw/constellations
Start adding Constellations APIs
2023-03-30 13:31:06 +00:00
Peter Williams d422c23007 wwt_api_client/constellations/handles.py: add the POST-image API 2023-03-29 22:34:50 -04:00
Peter Williams b530364116 wwt_api_client/constellations/handles.py: add a call to create a scene from a place 2023-03-29 21:01:44 -04:00
Peter Williams 31def2d323 wwt_api_client/constellations/handles.py: start this
We add a basic wrapper for the backend API to add a scene.
2023-03-29 19:49:48 -04:00
Peter Williams 5d00ffeb2c docs: work on freestanding Constellations endpoint docs 2023-03-29 18:49:32 -04:00
Peter Williams 6127968044 constellations: sample binding of /images/find-by-legacy-url endpoint
Hopefully the dataclasses-json package will give us a convenient way to
schema-ify requests and responses.
2023-03-29 18:15:23 -04:00
Peter Williams 51906f7abc wwt_api_client/constellations: start working on this 2023-03-29 17:13:53 -04:00
Peter Williams 4d9ab26e76 ci/azure-sdist.yml: add an xeuo-pipefile 2023-03-29 16:14:37 -04:00
Peter Williams 7848bdd065 pyproject.toml: fix typo 2023-03-29 16:13:24 -04:00
Peter Williams 8b1cce74c4 README.md: add some badges 2023-03-29 13:57:12 -04:00
Peter Williams acc685bf5e .readthedocs.yaml: update this config 2023-03-29 13:52:41 -04:00
Peter Williams 397c9a8f3f
Merge pull request #10 from pkgw/deep-six
Fix up tests/build
2023-03-29 17:43:51 +00:00
Peter Williams f8e3182e11 readthedocs.yml: tidy 2023-03-29 13:34:00 -04:00
Peter Williams fa331bc6f1 docs: update API doc structure 2023-03-29 13:33:32 -04:00
Peter Williams 0cb96974be Relicense to the MIT license
I'm the sole contributor so that's what I'm deciding!
2023-03-29 13:24:23 -04:00
Peter Williams 0c8a9f8f6c wwt_api_client/communities.py: reformat with "black" 2023-03-29 13:24:23 -04:00
Peter Williams 9e9cf71eef wwt_api_client/_version.py: remove this; we're now Cranko-driven 2023-03-29 13:24:13 -04:00
Peter Williams 7d549d0305 Make wwt_data_formats a hard requirement 2023-03-29 13:09:21 -04:00
Peter Williams c3143b63d9 docs: quick work to get docs building again 2023-03-29 13:09:00 -04:00