View Issue Details

IDProjectCategoryView StatusLast Update
0007612Talermechant backendpublic2024-01-12 14:04
Reportersebasjm Assigned ToChristian Grothoff  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionwon't fix 
Product Versiongit (master) 
Target Version0.9.2Fixed in Version0.9.2 
Summary0007612: if amount and summary is given, payload to use the template should be optional
DescriptionLet say I have a template with id 'beer' with amount and summary

This works
curl -X POST https://merchant-backend.taler.ar/instances/default/templates/beer -d '{}'

But this not
curl -X POST https://merchant-backend.taler.ar/instances/default/templates/beer

Server log
WARNING Failed to parse JSON request body of 0 byte at offset 0: '[' or '{' expected near end of file
TagsNo tags attached.

Activities

Christian Grothoff

2023-02-19 10:41

manager   ~0019877

I disagree, getting POSTs without bodies to work in the exchange would be excessively messy, and sending "{}" is hardly an issue for the client. The API spec also doesn't say that the body is optional.

Issue History

Date Modified Username Field Change
2023-01-27 14:30 sebasjm New Issue
2023-01-27 14:30 sebasjm Status new => assigned
2023-01-27 14:30 sebasjm Assigned To => Priscilla Huang
2023-02-03 10:50 Christian Grothoff Target Version git (master) => 0.9.2
2023-02-17 17:55 Florian Dold Target Version 0.9.2 => 0.9.3
2023-02-19 10:41 Christian Grothoff Note Added: 0019877
2023-02-19 10:41 Christian Grothoff Assigned To Priscilla Huang => Christian Grothoff
2023-02-19 10:41 Christian Grothoff Status assigned => closed
2023-02-19 10:41 Christian Grothoff Resolution open => won't fix
2023-02-19 10:41 Christian Grothoff Fixed in Version => 0.9.2
2023-02-19 10:41 Christian Grothoff Target Version 0.9.3 => 0.9.2
2024-01-12 14:04 Christian Grothoff Category merchant backend API (C) => mechant backend