Skip to content

Conversation

@mishaschwartz
Copy link
Collaborator

@mishaschwartz mishaschwartz commented Mar 14, 2025

The app previously would not start due to some model configurations.

This PR updates the configurations so that the app can be run as-is. It also includes some of the changes that we discussed in our meeting (sorry if you've already made some of them, please feel free to overwrite the ones made here in a later PR if you've got a better way of doing things).

To test out the app you can:

  • create a new example record with useless data:
SOME_DATA='{"username":"string","title":"string","desc":"string","fname":"string","lname":"string","email":"string","geometry":"string","latitude":[0, 1, 20],"longitude":[3, 4, 5],"myFile":"string","start_date":"2025-03-14T19:35:42.837Z","end_date":"2025-03-14T19:35:42.837Z","variables":"string","models":"string","path":"string","input":"string","link":"string"}'

curl -X POST http://localhost:8000/v1/data-publish-request -H 'Content-Type: application/json' -d "${SOME_DATA}"
  • the curl call should tell you what the id of the request you just created is. Assuming the id is 1, you can then update it like:
curl -X PATCH http://localhost:8000/v1/data-publish-request/1 -H 'Content-Type: application/json' -d '{"fname": "newname"}'
  • you can inspect the data with
curl http://localhost:8000/v1/data-publish-request/1

etc.

@mishaschwartz mishaschwartz marked this pull request as draft April 23, 2025 15:39
@mishaschwartz mishaschwartz mentioned this pull request Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants