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 - Update Related Table #226

Closed
victorzinho opened this issue Feb 12, 2024 · 0 comments · Fixed by #227
Closed

[Feature Request] API - Update Related Table #226

victorzinho opened this issue Feb 12, 2024 · 0 comments · Fixed by #227

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 updating an existing Related Table.

Implementation

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

📒 Description:

Update an existing related table.

⬇️ Request body:

  • 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

⬆️ 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
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