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 - Detail Related Table #195

Closed
victorzinho opened this issue Jan 25, 2024 · 0 comments · Fixed by #206
Closed

[Feature Request] API - Detail Related Table #195

victorzinho opened this issue Jan 25, 2024 · 0 comments · Fixed by #206

Comments

@victorzinho
Copy link
Contributor

This is the child of: #151

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

Objective

Create a new API endpoint for obtaining the detail of a single Related Table.

Implementation

GET /api/v1/related-tables/{id}

📒 Description:

The detail of a related table.

⬇️ Parameters:

  • none

⬆️ Returns:

  • 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

See: #194 for associated list endpoint; payloads should match.

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

Successfully merging a pull request may close this issue.

1 participant