Comments (10)
By the way, I'm thinking to release the first version soon, in the next weeks - it has a good shape already, I think. Mock version is not finished, of course, but that can wait until later versions.
from versioneye-api.
@SherifWaly don't forget about PDD. I think the DELETE should work in 30 min, not sure if you have time for both. Puzzles :D
from versioneye-api.
@SherifWaly done here, thanks :)
from versioneye-api.
@amihaiemil please pay attention to this new issue.
from versioneye-api.
@amihaiemil I want to do this one.
I want to ask whether this would be a good design for the methods or not.
for GET, POST and DELETE /github/{repo_key} I think they should be implemented at Repositories
as GET returns a more detailed information about the repository and I should make a class called for example DetailedRepository
.
What do you think about that :) ?
from versioneye-api.
@SherifWaly hmmm... I think
-
DELETE should go in the Repository interface. So once the usre has a Repository, he can simply call
delete()
on it, without needing to get its id -- same as for a Project -
GET /github/{repo_key} can go in
Repositories
, but do not make another class. The returned JSON will be animated by the existing implementation, which won't have all the needed methods, but it has thejson()
method which returns the raw content, with which the user can play. I'm affraid that having yet another class likeDetailedRepository
will be confusing. -
POST /github/{repo_key} is an endpoint that I do not understand: why does it need to take a File input? If I give the repo coordinates and the token which has at least read access on Github, can't VersionEye look for it in the repository? It seems pointless, and I would leave this endpoint out for version 1... anyway, for file upload with
jcabi-http
we have to wait for a ticket to be resolved there, or find another way on our own :D
So, for now, only DELETE and GET.
Makes sense? What do you say?
from versioneye-api.
@amihaiemil Ok, let's start with DELETE and GET :D
I also forgot the /github/hook it's implemented in Project but I think it should be done here also, what do you think :D ?
from versioneye-api.
@SherifWaly I think it's perfect in the Project. Since no matter what, the user will have to fetch a Project first and get its id, and only after that, to look for the method in this interface... it's more procedural.
Like it's done now, he gets an instance of Project and sees "ok, I can hook THIS project, to Github".
Again, otherwise, he would have to do more steps, to get the same outcome.
from versioneye-api.
@amihaiemil Ok, so i will implement DELETE and GET methods
from versioneye-api.
The puzzle 101-27d97a0d
has disappeared from the source code, that's why I closed this issue. //cc @amihaiemil
from versioneye-api.
Related Issues (20)
- VulnerabilitiesPage.java:39-40: Unit test this class, similar to how... HOT 2
- Repository.java:35-36: Complete implementations and unit... HOT 6
- Github.java:38-40: Complete Github API methods and move... HOT 10
- RtGithub.java:46-46: Unit test this class. HOT 2
- RepositoriesPage.java:39-40: Write some unit tests for this class.... HOT 5
- Vulnerability.java:35-36: Implement and unit test the methods... HOT 2
- Add DELETE method for Project HOT 1
- Implement Project.update(File) HOT 1
- RtRepositories.java:46-47: Refactor code to make the class... HOT 2
- Github.java:37-37: Complete Github API methods. HOT 2
- .versionEye() method HOT 5
- RtVersionEye.java:41-41: Implement versionEye() method for... HOT 2
- MkVersionEye.java:42-43: Continue implementing the mock API.... HOT 1
- RtRepositories.java:46-48: Modify repository(repositoryKey)... HOT 5
- Throw UnsupportedOperationException for unimplemented methods HOT 1
- Security.java:40-42: Implement a way of fetching the... HOT 3
- VersionEye.java:37-37: Implement the Product/Products Search... HOT 4
- test HOT 1
- test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from versioneye-api.