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

51 Коммитов

Автор SHA1 Сообщение Дата
Peter Williams 6e8c1aa6a1 Rename ImagePermissions to ImageContentPermissions
Since we're going to need to distinguish this from API permissions.
2023-06-02 16:18:08 -04:00
Peter Williams 80276c9ad9 docs: document endpoints added for likes/impressions 2023-06-02 16:07:36 -04:00
Peter Williams ce568a5033 Implement `PATCH /image/:id` 2023-06-02 15:49:37 -04:00
Peter Williams bedd4dc2be docs: document permissions fields for images 2023-06-02 11:33:32 -04:00
Peter Williams 737fe04d67 wwt_api_client/constellations/handles.py: update add_image_from_set() to handle permissions info
This is an API break, but a necessary one. Constellations has a richer model
for storing permissions than WWT.
2023-06-02 11:25:25 -04:00
Peter Williams ca9aa55d5e wwt_api_client/constellations/images.py: add ImageClient.get() 2023-06-02 10:21:14 -04:00
Peter Williams 49a1368901 wwt_api_client/constellations/handles.py: add support for GET :handle/imageinfo 2023-06-02 10:21:14 -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 85d750b772 wwt_api_client/constellations/scenes.py: add SceneClient.permissions() 2023-04-19 15:25:47 -04: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 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 4d633ad4c5 Add support for home and per-handle timelines 2023-03-31 16:02:35 -04: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 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 d422c23007 wwt_api_client/constellations/handles.py: add the POST-image API 2023-03-29 22:34:50 -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 fa331bc6f1 docs: update API doc structure 2023-03-29 13:33:32 -04:00
Peter Williams c3143b63d9 docs: quick work to get docs building again 2023-03-29 13:09:00 -04:00
Peter Williams ac2a13451f Set up for Cranko release management 2023-03-29 12:02:21 -04:00
Peter Williams 368c302f8b docs/conf.py: reformat with "black" 2023-03-29 12:01:37 -04:00
Peter Williams ad58df969f Update API docs and fix broken outbound (Gitbook) links 2020-11-05 15:21:29 -05:00
Peter Williams 7a15d3d6a5 Implement /Community/Detail/ 2020-03-26 22:41:36 -04:00
Peter Williams 9e94cb0ff9 Add /Community/Create/New API call 2020-03-26 22:07:57 -04:00
Peter Williams 0eaaa774fe Implement GetProfileEntities API 2020-03-26 21:45:30 -04:00
Peter Williams 75ee473ab1 wwt_api_client/communities.py: implement GetLatestCommunity 2020-03-26 20:32:16 -04:00
Peter Williams 11cd27a47c docs: basic wiring in of communities documentation 2020-03-26 19:25:35 -04:00
Peter Williams 117a978e62 Add the "login" API.
The API doesn't really do anything on the server, but the Windows clients use
this API to undertake big actions such as invalidating the cache or demanding
that the user download an update.
2020-03-23 22:35:58 -04:00
Peter Williams 84e439dba9 Tweak ShowImage API to align with TileImage better
- Make the image URL the first argument to the Client function.
- Rename `scale` to `scale_arcsec` since they use different units.
2019-05-06 14:43:48 -04:00
Peter Williams 7b608d5ea1 Implement TileImage API endpoint. 2019-05-06 14:39:52 -04:00
Peter Williams 89c3da14b1 docs/endpoints/tile-image.rst: document this call 2019-05-06 13:02:53 -04:00
Peter Williams 926cb4cfe1 Draft some API docs. 2019-04-28 19:05:29 -04:00
Peter Williams a721711d9c README.rst: fix ReadTheDocs links 2019-04-28 18:33:19 -04:00
Peter Williams d7907e97a7 docs/conf.py: fix docs build on Python 2.7 2019-04-28 13:41:22 -04:00
Peter Williams 0bc66cc790 docs/_static/.gitignore: make sure this directory shows up in Git checkouts 2019-04-28 13:22:21 -04:00
Peter Williams 9cc994ba4d docs/endpoints/show-image.rst: yet more refinement 2019-04-28 11:14:14 -04:00
Peter Williams 5aef556880 docs/endpoints: start documenting these
I am learning all sorts of fun stuff about WWT internals! Such as, the
baseline DSS imagery seems to have a global astrometric error!
2019-04-21 18:04:54 -04:00
Peter Williams 1b1beec5e9 Start roughing out the basics. 2019-04-20 23:54:45 -04:00