Musze wykonac takie zadanie:
1. there is a service method to create an document type
2. an HTTP endpoint that receives a JSON message exists
3. New document type object is created and persisted
4. Path to the new object is returned to the client as location header
1.
1. there is a service method to create an document type
2. an HTTP endpoint that receives a JSON message exists
3. New document type object is created and persisted
4. Path to the new object is returned to the client as location header
1.




















1. tak
2. po prostu pod jakimś kluczem w jsonie
2. jeśli już TWORZYSZ DOKUMENT to powinien on trafić do miejsca skąd może zostać pobrany przez klienta, np. Amazon S3, jaki jest sens trzymania go w bazie? jak wykonasz w takim przypadku wymaganie z pkt 4?
3. zazwyczaj tak, po prostu zwracaj bad request jeśli klient poda w jsonie format którego nie przewidziałeś
4. przez endpoint powinien być zwracany