Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "swagger": "2.0",
- "info": {
- "description": "The Application",
- "version": "1.0.0",
- "title": "Sample REST Application",
- "contact": {
- "name": "users@cxf.apache.org"
- },
- "license": {
- "name": "Apache 2.0 License",
- "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
- }
- },
- "basePath": "/services/helloservice",
- "tags": [
- {
- "name": "sayHello"
- },
- {
- "name": "sayHello2"
- }
- ],
- "paths": {
- "/sayHello/{a}": {
- "get": {
- "tags": [
- "sayHello"
- ],
- "operationId": "sayHello",
- "produces": [
- "text/plain"
- ],
- "parameters": [
- {
- "name": "a",
- "in": "path",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "schema": {
- "type": "string"
- },
- "headers": { }
- }
- }
- }
- },
- "/sayHello2/{a}": {
- "get": {
- "tags": [
- "sayHello2"
- ],
- "operationId": "sayHello_1",
- "produces": [
- "text/plain"
- ],
- "parameters": [
- {
- "name": "a",
- "in": "path",
- "required": true,
- "type": "string"
- }
- ],
- "responses": {
- "200": {
- "description": "successful operation",
- "schema": {
- "type": "string"
- },
- "headers": { }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement