integresql icon indicating copy to clipboard operation
integresql copied to clipboard

Help setting up IntegreSQL

Open bar-ailo opened this issue 3 years ago • 1 comments

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

bar-ailo avatar Apr 25 '21 23:04 bar-ailo

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 avatar Apr 26 '21 09:04 majodev

Closed via https://github.com/allaboutapps/integresql/pull/16

majodev avatar Jan 30 '24 18:01 majodev