Responses to the discussion on Github
lauriejim220d ago
Maintainer
Hello! Do you have the access of the database?
To create/update/delete data? Not only fetch.
Or you want to map the Strapi admin on an API instead of a database?
Not sure to exactly understand what you are trying to do.
dunods220d ago
Author
well the use case are assuming that we are given external rest api that enable all create, update, and delete. and want to be able to access and edit that data respectively within strapi admin .
any thought ?
soupette219d ago
Maintainer
You can create a view in the content manager so here are some thoughts:
- First create a new
<Route />by extending this file - Then if you want the link to appear in the left menu you should look at this one in order to inject a link in either the collection type or content type section
dunods212d ago
Author
i dont think we can achieve that by doing so.
to make it simple, we are given this api
[GET ALL] localhost:3000/api/v1/product/
[GET BY ID] localhost:3000/api/v1/product/:id
[POST] localhost:3000/api/v1/product
[PATCH]localhost:3000/api/v1/product/:id
[DELETE] localhost:3000/api/v1/product/:id
any clue/help ??
kyuumeitai220d ago
hey @dunods maybe you can do a lambda/openfaas function that writes that data into Strapi, no?
dunods220d ago
Author
thats not what im trying to achieve, where the scenario are the strapi has its own database as a micro services and there are some other external api that we want to manage/manipulate within the strapi admin dashboard. yes we can trigger callback by creating lambda function to create object to strapi, but by doing so we will have lotsa data redundancy.
sawden155d ago
Hey,
have you found a solution?
Josh-Uvi131d ago
@dunods @sawden hope it’s not too late, this is the solution I found External Data - Strapi Developer Documentation
lauriejim130d ago
Maintainer
And if you want to display stuff in your admin, you will have to customize your admin by creating a plugin (to have a new custom interface)