mr-conos / rock-api Goto Github PK
View Code? Open in Web Editor NEWAn API for viewing rocks and rating them
Home Page: https://rockapi.apiworks.tech/rock/random
An API for viewing rocks and rating them
Home Page: https://rockapi.apiworks.tech/rock/random
Its been almost an year and i dont see it being active.. please bring it up again
The node package "request" is deprecated.
https://www.npmjs.com/package/request
I'd recommend changing the documentation to either have examples using node-fetch
or axios
instead.
node-fetch: https://www.npmjs.com/package/node-fetch
axios: https://www.npmjs.com/package/axios
Describe the bug
The API is supposed to send you a picture of a rock. There was a frog.
To Reproduce
Steps to reproduce the behavior:
{"name": "frogg", "desc": "Definitely a rock.", "image": "https://tinyimg.io/i/VRWsyTb.png", "rating": 4}
.Expected behavior
There should be no frog.
Desktop (please complete the following information):
I suggest using the black
formatter (pip install black
) for this project.
black
is an unforgiving formatter, that meaning it's extremely consistent with it's guidelines. I think this consistency in style would be appreciated by other developers working on this project.
$ pip install black
or
$ python3 -m pip install black
$ black .
or
$ python3 -m black .
https://github.com/psf/black
https://pypi.org/project/black/
Why not use FastAPI to create the API? FastAPI offers more resources.
Moreover, the architecture of this project can be better
Rock-API
│ README.md
│
└───api
│ │ main.py
└───tests
│ test1.py
│ test2.py
And the architecture of the API itself can be improved too
mrconos.pythonanywhere.com/rock
/post
- upload a new rock/random
- get a random rock from the API/get
- get a specific rock by name/IDbase64
https://mrconos.pythonanywhere.com/rock/ Has a 404.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.