Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. namespace Abbyytestrestapi.Controllers
  2. {
  3. [Route("api/Abbyy")]
  4. [ApiController]
  5. public class AbbyyController : ControllerBase
  6. {
  7. [HttpGet("Templates")]
  8. public ActionResult GetAvailableTemplates()
  9. {
  10. return Ok("test");
  11. }
  12. [HttpPost("ConvertFile/{templateKey}")]
  13. public ActionResult ConvertFile([FromBody] IFormFile pdfFile, string templateKey)
  14. {
  15. return Ok("hello");
  16. }
  17. }
  18. }```
  19.  
  20. Yet I get an error 400 bad request. I have no idea what I am doing wrong... Can you help me? :)
  21.  
  22. Thank you in advance
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement