Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Help setting up IntegreSQL #5

Closed
bar-ailo opened this issue Apr 25, 2021 · 2 comments
Closed

Help setting up IntegreSQL #5

bar-ailo opened this issue Apr 25, 2021 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@bar-ailo
Copy link

Hey guys, this isn't actually an issue with IntegreSQL - i'm trying to demo IntegreSQL to replace our test DB provider in a Java project, to start out i'm using the docker-compose template and trying to interact with it using Postman.
Trying to send POST 127.0.0.1:5000/templates with -
{"hash": "some_string"} in the body is receiving a 404 not found response.
I'm not sure what I could be doing wrong at this step, I thought this was the initial interaction with IntegreSQL so I can't imagine what resource it's looking for.

Sorry for using this medium to contact you,
I wasn't sure how else to do so.
Thanks in advance

@majodev
Copy link
Contributor

majodev commented Apr 26, 2021

Hi @bar-ailo!

Oh, it seems we forgot to document the path prefixes properly, see templates router und admin router.

Please prepend /api/v1/templates to all calls except deleting all templates (which is /api/v1/admin). e.g.:

  • POST /api/v1/templates: initialize template
  • PUT api/v1/templates/{hash}: finalize template
  • DELETE /api/v1/templates/{hash}: discard a template
  • GET /api/v1/templates/{hash}/tests: get test database
  • DELETE /api/v1/templates/{hash}/{id}: return test database
  • DELETE /api/v1/admin/templates: delete all templates

Our current go client implementation should give you an overview on how we integrate with the server: integresql-client-go client.go

Sorry for the inconvenience.

@majodev majodev added documentation Improvements or additions to documentation good first issue Good for newcomers labels Apr 26, 2021
@majodev majodev self-assigned this Apr 26, 2021
@majodev
Copy link
Contributor

majodev commented Jan 30, 2024

Closed via #16

@majodev majodev closed this as completed Jan 30, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants