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

Unable to access jsondoc-ui.html #211

Open
kh77 opened this issue Nov 23, 2016 · 4 comments
Open

Unable to access jsondoc-ui.html #211

kh77 opened this issue Nov 23, 2016 · 4 comments

Comments

@kh77
Copy link

kh77 commented Nov 23, 2016

facing issue to access jsondoc-ui.html but can access json from url
localhost:8080/hello/json
and can also generate json file . Using Spring-MVC put js,css,jsondoc-ui.html files and added dependency of jsondoc-ui too with the same version of mvc and core for jsondoc. 1.2.16

{
"version": "1.1",
"basePath": "http://localhost:8080/SpringRestfulWebServicesCRUDExample",
"apis": {
"": [{
"jsondocId": "c72694cb-1db3-4313-b456-cb0766b0a133",
"name": "CountryController",
"description": "Methods for managing cities",
"visibility": "UNDEFINED",
"stage": "UNDEFINED",
"group": "",
"methods": [{
"jsondocerrors": ["Missing documentation data: path"],
"jsondocwarnings": ["Missing documentation data: produces"],
"jsondochints": ["Add description to ApiMethod"],
"jsondocId": "529add3d-aed1-4b5e-88a1-1b3b5fe88e50",
"path": ["Missing documentation data: path"],
"method": "getCountries",
"verb": ["GET"],
"produces": [],
"consumes": [],
"headers": [],
"pathparameters": [],
"queryparameters": [],
"bodyobject": null,
"response": {
"jsondocId": "7b426b0d-a716-445a-a226-dc0428d24099",
"jsondocType": {
"type": ["list", "country"],
"mapKey": null,
"mapValue": null,
"oneLineText": "list of country"
}
},
"responsestatuscode": "200 - OK",
"visibility": "UNDEFINED",
"stage": "UNDEFINED",
"id": "getCountries()",
"description": "",
"summary": "Gets a list of books",
"apierrors": [],
"supportedversions": null,
"auth": null,
"displayMethodAs": "URI",
"displayedMethodString": ["Missing documentation data: path"]
}],
"supportedversions": null,
"auth": null
}]
},
"objects": {
"": [{
"jsondocerrors": [],
"jsondocwarnings": [],
"jsondochints": [],
"jsondocId": "b76dcf66-e281-46ca-824d-f3686f16e167",
"name": "country",
"description": "",
"fields": [{
"jsondocerrors": [],
"jsondocwarnings": [],
"jsondochints": [],
"jsondocId": "b10934f7-e2e2-44e9-bfb9-f3728a4f8078",
"jsondocType": {
"type": ["string"],
"mapKey": null,
"mapValue": null,
"oneLineText": "string"
},
"name": "countryName",
"description": "The name of the country",
"format": [],
"allowedvalues": [],
"required": "false",
"supportedversions": null,
"order": 2147483647,
"displayedFormat": ""
}, {
"jsondocerrors": [],
"jsondocwarnings": [],
"jsondochints": [],
"jsondocId": "c4da98a1-c94d-42c3-9e2b-440655cf9c22",
"jsondocType": {
"type": ["int"],
"mapKey": null,
"mapValue": null,
"oneLineText": "int"
},
"name": "id",
"description": "The name of the country",
"format": [],
"allowedvalues": [],
"required": "false",
"supportedversions": null,
"order": 2147483647,
"displayedFormat": ""
}, {
"jsondocerrors": [],
"jsondocwarnings": [],
"jsondochints": [],
"jsondocId": "1dbe465e-1497-4c54-a430-fcb50b37275b",
"jsondocType": {
"type": ["long"],
"mapKey": null,
"mapValue": null,
"oneLineText": "long"
},
"name": "population",
"description": "The name of the country",
"format": [],
"allowedvalues": [],
"required": "false",
"supportedversions": null,
"order": 2147483647,
"displayedFormat": ""
}],
"supportedversions": null,
"allowedvalues": [],
"group": "",
"visibility": "UNDEFINED",
"stage": "UNDEFINED",
"jsondocTemplate": {
"countryName": "",
"id": 0,
"population": 0
},
"show": true
}]
},
"flows": {},
"global": null,
"playgroundEnabled": true,
"displayMethodAs": "URI"
}

@MrGraversen
Copy link

I am facing the same issue.

@MrGraversen
Copy link

MrGraversen commented Nov 24, 2016

Did you try going to just http://localhost:8080/jsondoc-ui.html ?

@kh77
Copy link
Author

kh77 commented Nov 24, 2016

no luck as i mentioned in maven properties

<jsondoc.path>http://localhost:8080/SpringRestfulWebServicesCRUDExample</jsondoc.path>

<plugin>
			<groupId>org.jsondoc</groupId>
			<artifactId>jsondoc-maven-plugin</artifactId>
			<version>1.2.16</version>
			<configuration>
				<version>1.1</version>
				<basePath>${jsondoc.path}</basePath>
				<packages>
					<package>org.controller</package>
					 <package>org.bean</package>
				</packages>
				<outputFile>${project.build.directory}/jsondoc.json</outputFile>
				<scanner>org.jsondoc.core.scanner.DefaultJSONDocScanner</scanner>
				<playgroundEnabled>true</playgroundEnabled>

				<displayMethodAs>URI</displayMethodAs>

			</configuration>
		</plugin>

json file is generated , through browser can access jsondoc endpoint but cant acccess jsondoc-ui.html
whyyyyyyyyyyyyyyy

@KonradSzewczuk
Copy link

I am also facing the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants