acikyazilimagi / deprem-yardim-backend-go

Apache License 2.0
288 stars 56 forks source link

Update feeds location endpoint #112

Closed huseyinbabal closed 1 year ago

huseyinbabal commented 1 year ago

⚠️ is_verified bool default false kolonu feeds_locations tablosuna eklenecek ⚠️

Description

Update feed location icin endpoint eklendi. Batch istek atilabilir

discord username: @huseyinbabal#7208

closes #issue

Please describe your changes, the reason for the changes, and the content of the code. Don't forget to list the dependencies that are effected by the change.

Things to do before you open the PR

Rules for opening PR's

Changes

How were these changes tested?

curl -X PATCH -H "x-api-key: deneme" --location "http://localhost/feeds/areas" \
    -H "Content-Type: application/json" 
    -d "{
          "feed_locations": [
            {
              "entry_id": 12,
              "address": "test1",
              "latitude": 1.1,
              "longitude": 1.2
            },
           {
              "entry_id": 13,
              "address": "test2",
              "latitude": 2.1,
              "longitude": 3.2
            },
          ]
        }"

Test Configuration: