55 "context"
66 "encoding/json"
77 "errors"
8+ "fmt"
89 "time"
910 "unicode/utf8"
1011
@@ -120,11 +121,15 @@ func (s *DataApiServer) GetDocument(
120121func (s * DataApiServer ) CreateDocument (
121122 ctx context.Context , in dataapiv1.CreateDocumentRequestObject ,
122123) (dataapiv1.CreateDocumentResponseObject , error ) {
124+ fmt .Println ("JW CREATING" )
125+
123126 bucketAgent , oboUser , errSt := s .authHandler .GetMemdOboAgent (ctx , in .Params .Authorization , in .BucketName )
124127 if errSt != nil {
125128 return nil , errSt .Err ()
126129 }
127130
131+ fmt .Println ("JW CREATING 1" )
132+
128133 key , errSt := s .parseKey (in .DocumentKey )
129134 if errSt != nil {
130135 return nil , errSt .Err ()
@@ -144,6 +149,8 @@ func (s *DataApiServer) CreateDocument(
144149 flags = * in .Params .XCBFlags
145150 }
146151
152+ fmt .Println ("JW CREATING 2" )
153+
147154 docValue , err := readDocFromHttpBody (in .Body )
148155 if err != nil {
149156 if errors .Is (err , ErrSizeLimitExceeded ) {
@@ -174,6 +181,8 @@ func (s *DataApiServer) CreateDocument(
174181 opts .Value = docValue
175182 }
176183
184+ fmt .Println ("JW CREATING 3" )
185+
177186 if in .Params .Expires != nil {
178187 expiry , errSt := parseStringToGocbcorexExpiry (* in .Params .Expires )
179188 if errSt != nil {
@@ -183,6 +192,8 @@ func (s *DataApiServer) CreateDocument(
183192 opts .Expiry = expiry
184193 }
185194
195+ fmt .Println ("JW CREATING 4" )
196+
186197 if in .Params .XCBDurabilityLevel != nil {
187198 dl , errSt := durabilityLevelToMemdx (* in .Params .XCBDurabilityLevel )
188199 if errSt != nil {
0 commit comments