Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend endpoint for the app config file #39

Closed
Davidezrajay opened this issue Mar 29, 2023 · 3 comments
Closed

Backend endpoint for the app config file #39

Davidezrajay opened this issue Mar 29, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Davidezrajay
Copy link

This is for the Flavored Version of the Treetracker app, which will allow a user to input a code into the app, which will than make a call to download the corresponding configuration file for that users organization.

Need a backend endpoint for the app.

Contact android team for more information

@Davidezrajay Davidezrajay added the enhancement New feature or request label Mar 29, 2023
@EngrTaofeek
Copy link

EngrTaofeek commented Mar 29, 2023

We need an endpoint that returns an organization configuration ( organization name, capture flow, capture setup flow,organization logo url). Ideally this should be a get request that takes a parameter (a code unique to every organization) then returns the organization configuration of that unique code. Here is the wiki link https://github.com/Greenstand/treetracker-android/wiki/Org-Links it's a bit outdated as it doesn't contain some of the new decisions we have made, I would update it shortly. We can also discuss this during production services meeting.

@sebastiangaertner
Copy link

The code has to be unique in the new DB table and have the reference to the stakeholder uuid.
Proposed table name: android_config
schema: stakeholder

If it does not make send to put it into the stakeholder schema please comment.

table structure TBD:

  • uuid
  • config_code (The org code would have a 5 digit code consisting of character/numerical mix: Examples H7M5D , B8G2M, etc has to be easy to enter)
  • stakeholder_uuid
  • config_body (contains the json that is handled within the Android for customized app behaviour, reach out to @EngrTaofeek or @Elforama for info on this)
  • installation_count (can we get a count from the Android app on how many devices or users have this config active which would need a feedback or do we need a n-m relation for this to actually track who has this actived?)
  • active: boolean
  • created_at: timestamp
  • updated_at: timestamp

@Kpoke Kpoke transferred this issue from Greenstand/treetracker-api Apr 21, 2023
@Kpoke Kpoke self-assigned this May 4, 2023
@Kpoke
Copy link
Collaborator

Kpoke commented May 29, 2023

#43

@Kpoke Kpoke closed this as completed May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants