Coder Social home page Coder Social logo

Comments (4)

hey-johnnypark avatar hey-johnnypark commented on July 19, 2024

Hi @salimhb ,

currently there exists the endpoint:

http://localhost:3000/companies/d51fd572-4daa-4387-bcb1-8760d5017795

it fetches all data for a company including the areas.

Example

{
  "name": "Test GmbH"
  "areas": [
    {},  <--- I assume you want to add the checkin link here?
    {}
  ]
}

That correct?

from recover-backlog.

hey-johnnypark avatar hey-johnnypark commented on July 19, 2024

QR code link is currently generated within QRCode. I suggest to move that particular logic to Area model in order to make it available in Area.

from recover-backlog.

salimhb avatar salimhb commented on July 19, 2024

Hi @hey-johnnypark, this Topic is not for the API, it's for the RailsAdmin Backend.
It's possible to add custom columns to the Area configuration in RailsAdmin that calls the QRCode class.

from recover-backlog.

hey-johnnypark avatar hey-johnnypark commented on July 19, 2024

@salimhb

This is how it would look like after the change:

[
    {
        "id": "d51fd572-4daa-4387-bcb1-8760d5017795",
        "name": "Test GmbH",
        "menu_link": "",
        "areas": [
            {
                "id": "765b3848-f4bc-4ab7-a719-77fa714cdc33",
                "name": "A",
                "menu_link": "",
                "company_id": "d51fd572-4daa-4387-bcb1-8760d5017795",
                "company_name": "Test GmbH",
                "owner_is_blocked": false,
                "menu_alias": null,
                "frontend_url": "http://localhost:3001",
                "public_key": "XRtIexDX/TRGo9xwr140mBrwjF8yHyWC8yU8r97dTHM=",
                "checkin_link": "http://localhost:3001/checkin?a=765b3848-f4bc-4ab7-a719-77fa714cdc33&k=XRtIexDX%2FTRGo9xwr140mBrwjF8yHyWC8yU8r97dTHM%3D"
            },
            {
                "id": "31d01a91-9a0a-44a3-b925-b22e2dd0c291",
                "name": "B",
                "menu_link": "",
                "company_id": "d51fd572-4daa-4387-bcb1-8760d5017795",
                "company_name": "Test GmbH",
                "owner_is_blocked": false,
                "menu_alias": null,
                "frontend_url": "http://localhost:3001",
                "public_key": "XRtIexDX/TRGo9xwr140mBrwjF8yHyWC8yU8r97dTHM=",
                "checkin_link": "http://localhost:3001/checkin?a=31d01a91-9a0a-44a3-b925-b22e2dd0c291&k=XRtIexDX%2FTRGo9xwr140mBrwjF8yHyWC8yU8r97dTHM%3D"
            }
        ],
        "menu_pdf_link": null
    }
]

from recover-backlog.

Related Issues (20)

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.