Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRedondoo committed Mar 11, 2024
1 parent 597a2c9 commit e4f49af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Nico/index-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ module.exports = (app, dbUfc) => {
});
});

//Documentación Postman
app.get(API_BASE + "/ufc-events-data/docs", (req, res) => {
res.status(301).redirect("https://documenter.getpostman.com/view/32992444/2sA2xh3tEg")
});


// GET Base
app.get(API_BASE+"/ufc-events-data", (req, res) => {
dbUfc.find({}, (err, events) => {
Expand Down Expand Up @@ -235,9 +241,5 @@ app.delete(API_BASE+"/ufc-events-data", (req, res) => {
});


//Documentación Postman
app.get(API_BASE + "/ufc-events-data/docs", (req, res) => {
res.status(301).redirect("https://documenter.getpostman.com/view/32992444/2sA2xh3tEg")
});

}
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1>SOS2324-14</h1>
<a href="https://sos2324-14.appspot.com/api/v1/movies-dataset/docs">http://sos2324-14.appspot.com/api/v1/movies-dataset/docs</a> (developed by Enrique García Olivares)
</li>
<li>
<a href="https://sos2324-14.appspot.com/api/v1/ufc-events-data/docs">https://documenter.getpostman.com/view/32992444/2sA2xh3tEg</a> (developed by Nicolás Redondo Moreno)
<a href="https://sos2324-14.appspot.com/api/v1/ufc-events-data/docs">https://sos2324-14.appspot.com/api/v1/ufc-events-data/docs</a> (developed by Nicolás Redondo Moreno)
</li>
<li>
<a href="https://sos2324-14.appspot.com/api/v1/youtube-trends/docs">https://sos2324-14.appspot.com/api/v1/youtube-trends/docs</a> (developed by Víctor Escalera García)
Expand Down

0 comments on commit e4f49af

Please sign in to comment.