Skip to content

Commit 339c877

Browse files
feat/[CS-38337]: Support for marketplace api
1 parent fb7a11f commit 339c877

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+2315
-1137
lines changed

pom.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<artifactId>cms</artifactId>
77
<packaging>jar</packaging>
88
<name>contentstack-management-java</name>
9-
<version>0.1.0</version>
9+
<version>1.0.0</version>
1010
<description>Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an
1111
API-first approach
1212
</description>
@@ -65,17 +65,10 @@
6565
<id>ossrh</id>
6666
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
6767
</snapshotRepository>
68-
<!--Publish to the maven repository-->
6968
<repository>
7069
<id>ossrh</id>
7170
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
7271
</repository>
73-
<!-- &lt;!&ndash;Publish to the GitHub repository&ndash;&gt;-->
74-
<!-- <repository>-->
75-
<!-- <id>github</id>-->
76-
<!-- <name>Github Packages</name>-->
77-
<!-- <url>https://maven.pkg.github.com/developshint/contentstack-management-java</url>-->
78-
<!-- </repository>-->
7972
</distributionManagement>
8073

8174
<properties>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
package com.contentstack.cms;
2+
3+
import org.jetbrains.annotations.NotNull;
4+
5+
import java.util.HashMap;
6+
7+
/**
8+
* The interface Parametron.
9+
*/
10+
public interface Parametron {
11+
12+
13+
/**
14+
* Add param t.
15+
*
16+
* @param <T>
17+
* the type parameter
18+
* @param key
19+
* the key
20+
* @param value
21+
* the value
22+
* @return the t
23+
*/
24+
public <T> T addParam(@NotNull String key, @NotNull String value);
25+
26+
/**
27+
* Add header t.
28+
*
29+
* @param <T>
30+
* the type parameter
31+
* @param key
32+
* the key
33+
* @param value
34+
* the value
35+
* @return the t
36+
*/
37+
public <T> T addHeader(@NotNull String key, @NotNull String value);
38+
39+
40+
/**
41+
* Add params t.
42+
*
43+
* @param <T>
44+
* the type parameter
45+
* @param params
46+
* the params
47+
* @return the t
48+
*/
49+
public <T> T addParams(@NotNull HashMap params);
50+
51+
52+
/**
53+
* Add headers t.
54+
*
55+
* @param <T>
56+
* the type parameter
57+
* @param headers
58+
* the headers
59+
* @return the t
60+
*/
61+
public <T> T addHeaders(@NotNull HashMap headers);
62+
}

0 commit comments

Comments
 (0)