question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after I run the program,I have not 'swagger-html' ?

See original GitHub issue

First,very thank you publish this project for us,it’s help me a lot .I write a project myself based on your project,thank you so much! but now, i have a question: afterI run this project,and the server have successd running on port 9000 , but I have no ‘swagger-html’:

import { request, summary, query } from 'koa-swagger-decorator';
 @request('get', '/searchTangPoetry')
    @summary('搜索唐诗的接口')
    @query({
        author: { type: 'string', required: true, default: DEFAULT_SEARCH_POETRY, description: '作者名字' },
    })

image

Hope to receive your help ,thank you again!!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
xieyezicommented, Aug 28, 2019

I understand what you mean. I use router.mapDir(__dirname + '/../') resolve this problem. thank you a lot ! javieraviles😀

0reactions
javieravilescommented, Aug 28, 2019

Try the slash before, I wrote it quickly but I meant you had to go up 1 level in the directory:

router.mapDir(__dirname + '/../')

Read more comments on GitHub >

github_iconTop Results From Across the Web

swagger-ui.html page not working springboot - Stack Overflow
For those who are using the newer version of swagger, here is the solution for accessing the swagger ui page. Replace this:
Read more >
REST API Documentation Tool | Swagger UI
Swagger UI allows development team to visualize and interact with the API's resources without having any of the implementation logic in place. Learn...
Read more >
Miele@home, miele@mobile component - Development
Hi,. just got it up and running - I really like the ease of it. Is there any view on when we see...
Read more >
API Documentation in Node.js Using Swagger
Hello. In this tutorial, we will understand how to write API documentation in Node.js using Swagger. 1. Introduction A swagger is a popular ......
Read more >
IBM Unified Management Server for z/OS 1.1: User Guide
The DDL validation did not accept the FL507 CREATE OR ... To install and run Unified Management Server, the following software products are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found