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

Add endpoint to create an entity in existing project for new geometry #2145

Merged
merged 4 commits into from
Feb 4, 2025

Conversation

Sujanadh
Copy link
Collaborator

@Sujanadh Sujanadh commented Feb 4, 2025

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation
  • πŸ§‘β€πŸ’» Refactor
  • βœ… Test
  • πŸ€– Build or CI
  • ❓ Other (please specify)

Related Issue

Describe this PR

A new endpoint is added to create an entity of newly created geometry before filling out the form for that feature.

Payload

project_id: 62
request body

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          [
            [
              85.31660440115547,
              27.739333245325867
            ],
            [
              85.31647342661392,
              27.73925872388513
            ],
            [
              85.31659504583035,
              27.739242163558075
            ],
            [
              85.31672602037202,
              27.739291844531763
            ],
            [
              85.31660440115547,
              27.739333245325867
            ]
          ]
        ],
        "type": "Polygon"
      }
    }
  ]
}

Screenshots

N/A

Alternative Approaches Considered

Did you attempt any other approaches that are not documented in code?

Review Guide

Notes for the reviewer. How to test this change?

Checklist before requesting a review

[optional] What gif best describes this PR or how it makes you feel?

@Sujanadh Sujanadh requested a review from spwoodcock February 4, 2025 12:10
@Sujanadh Sujanadh self-assigned this Feb 4, 2025
@github-actions github-actions bot added enhancement New feature or request backend Related to backend code labels Feb 4, 2025
@spwoodcock spwoodcock merged commit e462ece into development Feb 4, 2025
5 checks passed
@spwoodcock spwoodcock deleted the feat/create-entity branch February 4, 2025 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Related to backend code enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants