Code Monkey home page Code Monkey logo

Comments (7)

RubenSmn avatar RubenSmn commented on June 19, 2024 1

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.

kothariroshni8 avatar kothariroshni8 commented on June 19, 2024

I would like to work on this issue.

from map-config-api.

RubenSmn avatar RubenSmn commented on June 19, 2024

@kothariroshni8 yes please go ahead!

from map-config-api.

kothariroshni8 avatar kothariroshni8 commented on June 19, 2024

Hi @RubenSmn I was stuck at some other work. starting this now. I have some doubts

  1. will it be patch or put end point?
  2. 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.

kothariroshni8 avatar kothariroshni8 commented on June 19, 2024

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.

RubenSmn avatar RubenSmn commented on June 19, 2024

Yes I think that is fine

from map-config-api.

RubenSmn avatar RubenSmn commented on June 19, 2024

Fixed by #30

from map-config-api.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.