florgon / cc-api Goto Github PK
View Code? Open in Web Editor NEWLink shortening API written in Flask using Florgon Ecosystem (APIs).
Home Page: https://api-cc.florgon.com/v1
License: GNU Affero General Public License v3.0
Link shortening API written in Flask using Florgon Ecosystem (APIs).
Home Page: https://api-cc.florgon.com/v1
License: GNU Affero General Public License v3.0
AGPLv3+
requires giving a copy of program through network, so I'm planning to implement this API method. /v1/source
for example. It will give link to github repo and link to direct downloading of cc-api code archive.
Flask's url_for
with _external=True
builds url using internal docker network and API gives wrong link:
"_links": {
"qr": {
"href": "https://florgon-cc-api/v1/urls/bdWxN2/qr"
},
"stats": {
"href": "https://florgon-cc-api/v1/urls/bdWxN2/stats"
}
}
The links should be https://api-cc.florgon.com/v1/urls/xxxxxx/qr and https://api-cc.florgon.com/v1/urls/xxxxxx/stats
Remove Config
hierarchy to plain.
I prefer docs in markdown format, so I want to use it for cc-api docs.
docs/
folderAll docs should be initially written in English and later translated to Russian. Maybe other languages, if I find translators.
License notice, that placed at start of every file:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
You should replace "GNU General Public License" in this notice in every file by "GNU Affero General Public License"
Add PasteUrl.lang
attribute, that contains programming language of paste. Defaults to plain
.
Handler for 404 http code returning json response
Create simple Android client that requests API to shorten given links.
It should contains id
, created_at
fields
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.