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

[Feature Request] API - List Related Tables #194

Closed
victorzinho opened this issue Jan 25, 2024 · 1 comment
Closed

[Feature Request] API - List Related Tables #194

victorzinho opened this issue Jan 25, 2024 · 1 comment

Comments

@victorzinho
Copy link
Contributor

victorzinho commented Jan 25, 2024

This is the child of: #151

Current API docs: https://geosight.unicef.org/api/v1/docs/

Objective

Create a new API endpoint for listing Related Tables.

Implementation

GET /api/v1/related-tables/

📒 Description:

A list of related tables.

⬇️ Parameters:

  • all_fields={boolean}

⬆️ Returns:

Array of:

  • id: number, mandatory, read-only
  • name: string, mandatory
  • description: string, optional
  • fields_definition: array, mandatory, min 1
    • name: string, mandatory
    • label: string, optional
    • type: string enum ["Date", "String", "Number"], mandatory
  • url: string, url, mandatory, read-only
  • creator: string, mandatory, read-only
  • created_at: string, rfc date, read-only
  • modified_at: string, rfc date, read-only
@victorzinho
Copy link
Contributor Author

Closed in #196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant