-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3d01fc7
Showing
8 changed files
with
758 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>club.zabiny</groupId> | ||
<artifactId>klabis</artifactId> | ||
<version>0.1-SNAPSHOT</version> | ||
|
||
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>3.1.2</version> | ||
</parent> | ||
|
||
<properties> | ||
<maven.compiler.release>17</maven.compiler.release> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
<configuration> | ||
<image> | ||
<name>registry.polach.cloud/zbm/web-2.0/${project.artifactId}:${project.version}</name> | ||
</image> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>build-image</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package club.klabis; | ||
|
||
import org.springframework.boot.CommandLineRunner; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.context.annotation.Bean; | ||
|
||
@SpringBootApplication | ||
public class KlabisApplication { | ||
public static void main(String[] args) { | ||
SpringApplication.run(KlabisApplication.class, args); | ||
} | ||
|
||
@Bean | ||
public CommandLineRunner commandLineRunner() { | ||
return args -> { | ||
|
||
System.out.println("Spring funguje... :)"); | ||
|
||
}; | ||
} | ||
} |
Empty file.
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Klabis - OpenAPI 3.1 | ||
description: |- | ||
contact: | ||
email: [email protected] | ||
license: | ||
name: MIT License | ||
version: 0.0.3 | ||
servers: | ||
- url: https://klabis.zabiny.club | ||
tags: | ||
- name: personal-info | ||
description: | ||
|
||
paths: | ||
/members: | ||
post: | ||
tags: | ||
- personal-info | ||
summary: Create a new club member | ||
description: > | ||
Creates a new club member with the provided details. | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '#/components/schemas/CreateClubMember' | ||
responses: | ||
'201': | ||
description: New club member created successfully | ||
'401': | ||
description: Unauthorized - User does not have permission to create a new member | ||
'500': | ||
description: Internal Server Error | ||
|
||
components: | ||
schemas: | ||
Contact: | ||
type: object | ||
properties: | ||
contactType: | ||
type: string | ||
enum: [direct_contact, guardian_contact] | ||
description: Type of contact information | ||
email: | ||
type: string | ||
format: email | ||
description: Email address of the club member or guardian | ||
phone: | ||
type: string | ||
description: Phone number of the club member or guardian | ||
Address: | ||
type: object | ||
properties: | ||
street: | ||
type: string | ||
description: Street name and number | ||
city: | ||
type: string | ||
description: City | ||
postalCode: | ||
type: string | ||
description: Postal or ZIP code | ||
country: | ||
type: string | ||
description: Country name | ||
required: | ||
- street | ||
- city | ||
- postalCode | ||
- country | ||
examples: | ||
- street: 123 Main Street | ||
city: City | ||
postalCode: "12345" | ||
country: Country | ||
CreateClubMember: | ||
type: object | ||
properties: | ||
firstName: | ||
type: string | ||
description: First name of the club member | ||
lastName: | ||
type: string | ||
description: Last name of the club member | ||
dateOfBirth: | ||
type: string | ||
format: date | ||
description: Date of birth of the club member | ||
nationalIdNumber: | ||
type: string | ||
description: Personal identification number of the club member | ||
nationality: | ||
type: string | ||
description: Nationality of the club member | ||
address: | ||
$ref: '#/components/schemas/Address' | ||
gender: | ||
type: string | ||
enum: [male, female, other] | ||
description: Gender of the club member | ||
contact: | ||
$ref: '#/components/schemas/Contact' | ||
siCard: | ||
type: number | ||
description: Chip number assigned to the club member | ||
required: | ||
- firstName | ||
- lastName | ||
- dateOfBirth | ||
- nationalIdNumber | ||
- nationality | ||
- address | ||
- gender | ||
- contact | ||
examples: | ||
- firstName: John | ||
lastName: Doe | ||
dateOfBirth: "1990-01-01" | ||
nationalIdNumber: "123456789" | ||
nationality: US | ||
address: | ||
street: 123 Main Street | ||
city: City | ||
postalCode: "12345" | ||
country: Country | ||
gender: male | ||
contact: | ||
contactType: direct_contact | ||
email: [email protected] | ||
phone: "+1234567890" | ||
siCard: 123 | ||
|