• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #57

29 Jul 2025 04:55PM UTC coverage: 60.803% (+0.2%) from 60.611%
#57

push

github

web-flow
Added new sharing endpoints. Deprecated old sharing endpoints. (#125)

* Added new sharing endpoints.
Deprecated old endpoints.

* Updated to 3.3.0 for deprecation date.

* Removed amp.

* fixed `&`

106 of 157 new or added lines in 9 files covered. (67.52%)

4269 of 7021 relevant lines covered (60.8%)

0.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/src/main/java/com/smartsheet/api/internal/http/HttpPatch.java
1
/*
2
 * Copyright (C) 2025 Smartsheet
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.smartsheet.api.internal.http;
18

19
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
20

21
import java.net.URI;
22

23
/**
24
 * HTTP PATCH method.
25
 * <p>
26
 * The HTTP PATCH method is defined in <a href="https://tools.ietf.org/html/rfc5789">RFC 5789</a>:
27
 * The PATCH method requests that a set of changes described in the
28
 * request entity be applied to the resource identified by the Request-URI.
29
 * </p>
30
 */
31
public class HttpPatch extends HttpEntityEnclosingRequestBase {
32

33
    public static final String METHOD_NAME = "PATCH";
34

35
    /**
36
     * Constructor with URI.
37
     *
38
     * @param uri the URI
39
     */
40
    public HttpPatch(final URI uri) {
41
        super();
1✔
42
        setURI(uri);
1✔
43
    }
1✔
44

45
    /**
46
     * Constructor with String URI.
47
     *
48
     * @param uri the URI
49
     */
50
    public HttpPatch(final String uri) {
NEW
51
        super();
×
NEW
52
        setURI(URI.create(uri));
×
NEW
53
    }
×
54

55
    @Override
56
    public String getMethod() {
57
        return METHOD_NAME;
1✔
58
    }
59
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc