Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore/release preparation #202

Merged
merged 3 commits into from
Jun 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Here, we collected some advice to smooth out the experience for everyone involve

## I Have A Question

> Some questions can be answered by reading our [documentation](https://springwolf.github.io/docs/faq) including the FAQ page.
> Some questions can be answered by reading our [documentation](https://www.springwolf.dev/docs/faq) including the FAQ page.

Before you ask a question, it is best to search for existing [Issues](https://github.com/springwolf/springwolf-core/issues) that might help you.
In case you have found a suitable issue and still need clarification, you can write your question in this issue.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
##### Automated documentation for AsyncAPIs built with Spring Boot

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
![springwolf-core](https://github.com/stavshamir/springwolf/workflows/springwolf-core/badge.svg)
![springwolf-kafka](https://github.com/stavshamir/springwolf/workflows/springwolf-kafka/badge.svg)
![springwolf-amqp](https://github.com/stavshamir/springwolf/workflows/springwolf-amqp/badge.svg)
![springwolf-cloud-stream](https://github.com/stavshamir/springwolf/workflows/springwolf-cloud-stream/badge.svg)
![springwolf-core](https://github.com/springwolf/springwolf-core/workflows/springwolf-core/badge.svg)
![springwolf-kafka](https://github.com/springwolf/springwolf-core/workflows/springwolf-kafka/badge.svg)
![springwolf-amqp](https://github.com/springwolf/springwolf-core/workflows/springwolf-amqp/badge.svg)
![springwolf-cloud-stream](https://github.com/springwolf/springwolf-core/workflows/springwolf-cloud-stream/badge.svg)

> We are on discord for any question, discussion, request etc.
> Join us at https://discord.gg/HZYqd5RPTd
Expand All @@ -27,10 +27,10 @@ The resulting document is compliant with the [asyncapi specification](https://ww
web UI, much like that of Springfox, and allows easy publishing of autogenerated payload examples.

### Demo
You can take a look at a [live demo of springwolf](https://springwolf.github.io/springwolf-ui/).
You can take a look at a [live demo of springwolf](https://demo.springwolf.dev/).

### Documentation
Springwolf documentation is available at [here](https://springwolf.github.io/docs/quickstart).
Springwolf documentation is available at [here](https://www.springwolf.dev/docs/quickstart).

### Supported protocols
- Kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ publishing {
pom {
name = 'springwolf-common-model-converters'
description = 'Common model converters beans for Springwolf'
url = 'https://springwolf.github.io/'
url = 'https://www.springwolf.dev'

licenses {
license {
Expand Down Expand Up @@ -89,7 +89,7 @@ publishing {
}

scm {
url = 'https://github.com/stavshamir/springwolf'
url = 'https://github.com/springwolf/springwolf-core'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions springwolf-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ publishing {
pom {
name = 'springwolf-core'
description = 'Automated JSON API documentation for async APIs (Kafka etc.) interfaces built with Spring'
url = 'https://springwolf.github.io'
url = 'https://www.springwolf.dev'

licenses {
license {
Expand Down Expand Up @@ -106,7 +106,7 @@ publishing {
}

scm {
url = 'https://github.com/stavshamir/springwolf'
url = 'https://github.com/springwolf/springwolf-core'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions springwolf-plugins/springwolf-amqp-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ publishing {
pom {
name = 'springwolf-amqp'
description = 'Automated JSON API documentation for AMQP (RabbitMQ) Listeners built with Spring'
url = 'https://springwolf.github.io'
url = 'https://www.springwolf.dev'

licenses {
license {
Expand Down Expand Up @@ -99,7 +99,7 @@ publishing {
}

scm {
url = 'https://github.com/stavshamir/springwolf'
url = 'https://github.com/springwolf/springwolf-core'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ publishing {
pom {
name = 'springwolf-cloud-stream'
description = 'Automated JSON API documentation for Spring Boot cloud stream functions'
url = 'https://springwolf.github.io'
url = 'https://www.springwolf.dev'

licenses {
license {
Expand Down Expand Up @@ -104,7 +104,7 @@ publishing {
}

scm {
url = 'https://github.com/stavshamir/springwolf'
url = 'https://github.com/springwolf/springwolf-core'
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions springwolf-plugins/springwolf-kafka-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ publishing {
pom {
name = 'springwolf-kafka'
description = 'Automated JSON API documentation for Kafka Listeners built with Spring'
url = 'https://springwolf.github.io'
url = 'https://www.springwolf.dev'

licenses {
license {
Expand Down Expand Up @@ -99,7 +99,7 @@ publishing {
}

scm {
url = 'https://github.com/stavshamir/springwolf'
url = 'https://github.com/springwolf/springwolf-core'
}
}
}
Expand Down
10 changes: 8 additions & 2 deletions springwolf-ui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ publishing {
pom {
name = 'springwolf-ui'
description = 'Web UI for Springwolf'
url = 'https://springwolf.github.io'
url = 'https://www.springwolf.dev'

licenses {
license {
Expand All @@ -85,10 +85,16 @@ publishing {
name = 'Timon Back'
email = '[email protected]'
}

developer {
id = 'sam0r040'
name = 'David Müller'
email = '[email protected]'
}
}

scm {
url = 'https://github.com/springwolf/springwolf-ui'
url = 'https://github.com/springwolf/springwolf-core'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion springwolf-ui/src/app/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<mat-toolbar color="primary" fxLayout fxLayoutAlign="space-between center">
<img src="assets/springwolf-logo.png" class="logo" alt="Logo" />
<h2>springwolf</h2>
<a href="https://github.com/stavshamir/springwolf">
<a href="https://github.com/springwolf/springwolf-core">
<i class="fa fa-github fa-2x"></i>
</a>
</mat-toolbar>
21 changes: 14 additions & 7 deletions springwolf-ui/src/app/shared/mock/mock-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ import mockSpringwolfAmqp from '../../../../../springwolf-examples/springwolf-am
import mockSpringwolfCloudStream from '../../../../../springwolf-examples/springwolf-cloud-stream-example/src/test/resources/asyncapi.json';
import mockSpringwolfKafka from '../../../../../springwolf-examples/springwolf-kafka-example/src/test/resources/asyncapi.json';

const mockAsyncApi = {
...mockSpringwolfAmqp,
...mockSpringwolfCloudStream,
...mockSpringwolfKafka,
}

export class MockServer implements InMemoryDbService {
createDb() {
return {kafka: []};
Expand All @@ -17,10 +11,11 @@ export class MockServer implements InMemoryDbService {
get(reqInfo: RequestInfo) {
console.log("Returning mock data")
if (reqInfo.req.url.endsWith('/docs')) {
const body = this.selectMockData()
return reqInfo.utils.createResponse$(() => {
return {
status: STATUS.OK,
body: mockSpringwolfKafka
body: body
}
});
}
Expand All @@ -40,4 +35,16 @@ export class MockServer implements InMemoryDbService {
return undefined;
}

private selectMockData() {
const hostname = window.location.hostname;

if(hostname.includes("amqp")) {
return mockSpringwolfAmqp;
} else if(hostname.includes("cloud-stream")) {
return mockSpringwolfCloudStream;
}
// Kafka is default
return mockSpringwolfKafka;
}

}