Skip to content

Commit 4772b4e

Browse files
committed
Initial Setup
0 parents  commit 4772b4e

5 files changed

Lines changed: 132 additions & 0 deletions

File tree

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Maven target directory
2+
/target/
3+
4+
# Eclipse IDE files
5+
.project
6+
.classpath
7+
.settings/
8+
9+
# IntelliJ IDEA files
10+
*.iml
11+
.idea/
12+
out/
13+
14+
# NetBeans IDE files
15+
nbproject/private/
16+
build/
17+
nbbuild/
18+
dist/
19+
nbdist/
20+
.nb-gradle/
21+
22+
# VS Code settings
23+
.vscode/
24+
25+
# OS-generated files
26+
.DS_Store
27+
Thumbs.db
28+
29+
# Logs and temp files
30+
*.log
31+
*.tmp
32+
*.swp
33+
34+
# Maven wrapper files (optional – only ignore if you don't use them)
35+
# mvnw
36+
# mvnw.cmd
37+
# .mvn/
38+
39+
# Optional: ignore local build output or test reports
40+
surefire-reports/
41+
jacoco.exec
42+
43+
# Environment Files
44+
*.env
45+
*.env.example
46+
*.env.local
47+
*.env.staging

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 UC Davis
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## Rosetta API Client Example
2+
3+
A quick repository demonstrating how to access the UCD Rosetta API. Please contact the Campus Identity team to obtain the required credentials for your API account.
4+
5+
Example of .env file
6+
7+
```bash
8+
# Rosetta Client ID
9+
ROSETTA_CLIENT_ID=obtain-from-the-identity-team
10+
11+
# Rosetta Client Secret
12+
ROSETTA_CLIENT_SECRET=obtain-from-the-identity-team
13+
14+
# Rosetta Base URL
15+
ROSETTA_BASE_URL=https://obtain-from-the-identity-team.io/api/v1/
16+
17+
# Rosetta OAuth URL
18+
ROSETTA_OAUTH_URL=https://obtain-from-the-identity-team.io/token
19+
20+
# Rosetta Test IAM ID
21+
ROSETTA_TEST_ID=member-iam-id-to-test-with
22+
23+
```

pom.xml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<groupId>edu.ucdavis.coeitss</groupId>
8+
<artifactId>rosettaapiclientexample</artifactId>
9+
<version>1.0-SNAPSHOT</version>
10+
11+
<properties>
12+
<maven.compiler.source>17</maven.compiler.source>
13+
<maven.compiler.target>17</maven.compiler.target>
14+
</properties>
15+
16+
<dependencies>
17+
<dependency>
18+
<groupId>com.fasterxml.jackson.core</groupId>
19+
<artifactId>jackson-core</artifactId>
20+
<version>2.20.1</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>com.fasterxml.jackson.core</groupId>
24+
<artifactId>jackson-databind</artifactId>
25+
<version>2.20.1</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>io.github.cdimascio</groupId>
29+
<artifactId>dotenv-java</artifactId>
30+
<version>3.2.0</version>
31+
</dependency>
32+
</dependencies>
33+
34+
</project>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package edu.ucdavis.coeitss;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
System.out.println("Hello world!");
6+
}
7+
}

0 commit comments

Comments
 (0)