JetBrains / YouTrackSharp

.NET Standard 2.0 Library to access YouTrack API.
https://www.jetbrains.com/youtrack
Apache License 2.0
135 stars 105 forks source link

Implement Administration API's #40

Open maartenba opened 7 years ago

maartenba commented 7 years ago

See the following URL's for documentation:

Perhaps good to split the work for this in separate issues and PR's.

aschoelzhorn commented 7 years ago

I'm implementing the API for https://www.jetbrains.com/help/youtrack/standalone/Project-Custom-Fields.html

maartenba commented 7 years ago

Sweet! Thanks @aschoelzhorn

maartenba commented 7 years ago

Thanks, logged #70 for that.

nylchr commented 6 years ago

I'm tempted to start with https://www.jetbrains.com/help/youtrack/standalone/Project.html but it raises the question about class definitions. There's already a Project class, derived from https://www.jetbrains.com/help/youtrack/standalone/Get-Accessible-Projects.html, with a vastly different definition than the two different versions that https://www.jetbrains.com/help/youtrack/standalone/Project.html offers. There's also a Project class in the Agile Boards namespace with the same signature as one of the new ones. I propose an inheritance hierarchy with Project (containing only the id) as base.

Actually, it would be even better if all API calls returning a project returned the definition found at https://www.jetbrains.com/help/youtrack/standalone/GET-Project.html { "name": "Test Project", "id": "TP", "description": null, "archived": false, "lead": "login.name", "startingNumber": null }

Any suggestions on how to proceed?

maartenba commented 6 years ago

There can be a new Project class in the new (to be created) namespace for this? I'd say best to stick close to the API's, so having a specialized Project for each scenario seems feasible. Okay with inheritance regarding having a project id across all.