Comments (7)
Hi @kothariroshni8 yes so the way this is working is that we, for example, want to save a custom theme for an organization:
{
"name": "custom-theme",
"data": "{ data for the custom theme }",
"ref_id": "xxx",
"ref_uuid": "xxx"
}
Either the ref_id
or the ref_uuid
is to link the organization (not entirely sure which one anymore 🙃)
When the user updates the theme for the organization we only update the data
part, so I think we should use a patch
So the body of the request will just contain the data
I hope I explained it, if you have more questions feel free to just ask
from map-config-api.
I would like to work on this issue.
from map-config-api.
@kothariroshni8 yes please go ahead!
from map-config-api.
Hi @RubenSmn I was stuck at some other work. starting this now. I have some doubts
- will it be patch or put end point?
- if it is patch then can you share sample request body ? as i understand we have only one data column in database.
from map-config-api.
Hi @RubenSmn ,
as i see sample data both ref_id and ref_uuid can be null
{ "id": "7d79fba9-2624-4232-ae19-049deac1f30f", "name": "featured-planter", "data": { "planters": [ 940 ] }, "ref_id": null, "ref_uuid": null, "created_at": "2022-08-30T10:15:54.320Z", "updated_at": "2022-08-30T10:15:54.320Z" }
should we do it based on "id" column, it will be unique identifier?
from map-config-api.
Yes I think that is fine
from map-config-api.
Fixed by #30
from map-config-api.
Related Issues (10)
- Create schema, and table
- API for web map client
- The `ref_id` support `string` type
- An error running CI deployment HOT 5
- API for planter/org about infomation HOT 2
- extra organization webmap config call created double entry on update HOT 1
- Husky Pre-commit
- Set up the codebase
- web map config deployment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from map-config-api.