@@ -0,0 +1,1534 @@
+package com.firma.controllers;%0A%0Aimport com.firma.models.Faktura;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0A%0Aimport java.util.List;%0A%0A/**%0A * Created by Predrag on 6/25/17.%0A */%0A%0A@Controller%0A@RequestMapping(%22/invoices%22)%0Apublic class InvoiceService %7B%0A%0A    @RequestMapping(%0A            method = RequestMethod.POST,%0A            consumes = %22application/xml%22,%0A            produces = %22application/json%22%0A    )%0A    public Faktura createInvoice(Faktura faktura)%7B%0A%0A        return null;%0A    %7D%0A%0A    @RequestMapping(%0A            value = %22/send%22,%0A            method = RequestMethod.POST,%0A            consumes = %22application.xml%22%0A    )%0A    public void sendInvoice(Faktura faktura)%7B%0A%0A    %7D%0A%0A    @RequestMapping(%0A            value = %22/show/%7Bid%7D%22,%0A            method = RequestMethod.GET,%0A            produces = %22application/json%22%0A    )%0A    public Faktura getInvoice(@PathVariable String id)%7B%0A%0A        return null;%0A    %7D%0A%0A    @RequestMapping(%0A            value = %22/show/received%22,%0A            method = RequestMethod.GET,%0A            produces = %22application/json%22%0A    )%0A    public List%3CFaktura%3E getReceivedInvoices()%7B%0A%0A        return null;%0A    %7D%0A%0A    @RequestMapping(%0A            value = %22/show/sent%22,%0A            method = RequestMethod.GET,%0A            produces = %22application/json%22%0A    )%0A    public List%3CFaktura%3E getSentInvoices()%7B%0A%0A        return null;%0A    %7D%0A%7D%0A

Create invoice endpoints