1

신난다.로컬에서 실행중인 비웃어 편집기가 빈 페이지를 표시합니다.

나는 django-rest-framework에서 API를 만들었습니다. 나는 그들을 문서화하고 싶다. 그러므로 배척에 대해 읽으십시오.

django-rest-swagger를 시도했지만 문서가 부족하여 문서 작성에 적합하지 않습니다. 따라서 처음부터 API 구조를 설계 할 수있는 훌륭한 편집기를 시도하고 있습니다. 로컬로 설치했지만 "127.0.0.1:9000"에 빈 페이지가 표시됩니다. 지금 어떻게해야합니까?

로컬로 설치된 swagger-editor에서 사용할 YAML 또는 JSON 파일을 작성하고 싶습니다. 이것을 어떻게 할 수 있습니까? 내가 127.0.0.1:9000

Warn: could not find module util 
http://127.0.0.1:9000/bower_components/angular-schema-form/dist/schema-form.js Failed to load resource: the server responded with a status of 404 (Not Found) 
angular.js:80 Uncaught Error: [$injector:nomod] Module 'schemaForm' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. 
http://errors.angularjs.org/1.3.2/$injector/nomod?p0=schemaForm 
angular.js:80 Uncaught Error: [$injector:modulerr] Failed to instantiate module PhonicsApp due to: 
Error: [$injector:modulerr] Failed to instantiate module schemaForm due to: 
Error: [$injector:nomod] Module 'schemaForm' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument. 
+2

몇 가지 의견 : 스와지나 에디터는 YAML/JSON을 소비하지 않으며 제작합니다. 또한 편집기에 문제가있는 경우 저장소에서 직접 문제를 열어 보는 것이 좋습니다. 마지막으로 http://editor.swagger.io에서 온라인 편집기를 사용할 수 있습니다. – Ron

+0

예, 온라인 편집기는 솔루션이지만 제 3 자에게 공개해야하기 때문에 스테이징 서버에서 문서를 작성할 수있는 방법이 있습니다 .. 제안 사항은 무엇입니까? – Pranav

+0

편집기를 로컬로 사용하는 경우에도 JSON을 내보내고 어딘가에 호스트해야하므로이 둘은 관련이 없습니다. – Ron

답변

0

를로드 할 때

이 나는 ​​문제가 여기에 정확히 모르겠어요 콘솔의 오류입니다. 일반적으로 npm 및 Bower 모듈은 항상 정리하고 깨끗한 상태에서 다시 시작할 수 있습니다.

npm cache clean 
rm -rf node_modules 
npm install 
bower cache clean 
rm -rf app/bower_components 
bower install 
npm start 
+0

현재이 코드를 테스트 할 수있는 위치에 있지 않고 시간을내어 주셔서 감사합니다. – Pranav

+0

여기에 여전히 빈 페이지가 있습니다. 빈 흰색. 당신의 해결책을 시도했지만 여전히 공란입니다. 어떤 아이디어? bower 설치시 "bower ENOENT bower.json 없음" – momokjaaaaa

0

나는 동일한 문제를 겪고있었습니다.
이전에 내 노드 버전 내가 모든 것을 다시 설치 한 후

node --v 

할 v4.4.4 설치
최신 V6이었다 확실히 그것은 v4.4.4

npm install -g http-server 

wget https://github.com/swagger-api/swagger-editor/releases/download/v2.10.1/swagger-editor.zip 

unzip swagger-editor.zip 

http-server 

는 HTTP 서버 swagger-를 사용하지 않는 편집자

관련 문제