| 96 | } |
| 97 | |
| 98 | void ServerApi06::DeleteElement(editor::XMLFeature const & element) const |
| 99 | { |
| 100 | std::string const id = element.GetAttribute("id"); |
| 101 | if (id.empty()) |
| 102 | MYTHROW(DeletedElementHasNoIdAttribute, ("Please set id attribute for", element)); |
| 103 | |
| 104 | OsmOAuth::Response const response = |
| 105 | m_auth.Request("/" + element.GetTypeString() + "/" + id, "DELETE", element.ToOSMString()); |
| 106 | if (response.first != OsmOAuth::HTTP::OK && response.first != OsmOAuth::HTTP::Gone) |
| 107 | MYTHROW(ErrorDeletingElement, ("Could not delete an element:", response)); |
| 108 | } |
| 109 | |
| 110 | void ServerApi06::UpdateChangeSet(uint64_t changesetId, KeyValueTags const & kvTags) const |
| 111 | { |