How do you connect django-rest-knox from service_1 (separately host) to another service_2?

Submitted 3 years, 9 months ago
Ticket #43
Views 257
Language/Framework Python
Priority Medium
Status Closed

Currently I am connecting 2 service via search_path and using inspectdb. I wonder if there;s a way like using a full API connection without sharing database.

Submitted on Jul 15, 20
add a comment

1 Answer

Full API means using 2 different databases/services in single exposed API

Submitted 3 years, 9 months ago

Yes. Because I need to make a table from Service1 as a foreign key to a table in Service2.

- RadySonabu 3 years, 9 months ago

API connection just to exposing the data. I dont think we could able to make the tables. We need to customize our models to handle such a way to hold the data FIELDS from Service 1 from shared database.

- Vengat 3 years, 9 months ago

There's a constraint where DATA should only be accessible via REST API and they do not share database nor schema.

- RadySonabu 3 years, 9 months ago

Well may be we connect if you would like to understand more your requirement and work on it.

- Vengat 3 years, 9 months ago

as there is no update on this ticket further. We are closing the ticket.

- Vengat 3 years, 9 months ago


Latest Blogs