View VersionOne_Batch_Assets_API.json
{"front-version":"1.4.2.1", "version":3, "nodes":[{"id":"BE8F33FF-B9A5-409D-831F-DC21EC15103A", "lastModified":"2017-02-09T13:16:36.146-05:00", "name":"VersionOne Batch Assets API", "type":"Project"},{"id":"07F1A78B-5F13-4833-A461-47ADF9BE0208", "lastModified":"2017-02-07T18:31:17.382-05:00", "name":"_ Execute QuickClose on Story Assets", "headers":[{"enabled":true, "name":"Content-Type", "value":"text/yaml"},{"enabled":true, "name":"Authorization", "value":"Basic YWRtaW46YWRtaW4="}], "metaInfo":{"ownerId":"Local repository id"}, "type":"Request", "method":{"requestBody":true, "link":"http://tools.ietf.org/html/rfc7231#section-4.3.3", "name":"POST"}, "body":{"autoSetLength":true, "textBodyEditorHeight":351, "textBody":"from: Story\nwhere:\n Scope: Scope:0\nexecute: QuickClose", "bodyType":"Text"}, "headersType":"Form", "uri":{"host":"localhost", "path":"/VersionOne.Web/api/asset/batch", "scheme":{"name":"http", "version":"V11"}}, "parentId":"BE8F33FF-B9A5-409D-831F-DC21EC15103A"},{"id":"2726D020-6CD7-40DB-A48
View _ DHC Project.json
{
"front-version": "1.4.2.1",
"version": 3,
"nodes": [
{
"id": "BE8F33FF-B9A5-409D-831F-DC21EC15103A",
"lastModified": "2017-02-07T14:34:13.049-05:00",
"name": "Batch Assets API",
"type": "Project"
},
View GenerateTestSet.json
{
"ContextOid": "RegressionSuite:125538",
"ContextManager": {
"PrimaryScopeContext": "Scope:0",
"ScopeRollup": true,
"AssetContext": "Scope:11198",
"AssetListContext": "",
"Bubble": "Scope:0",
"ScopeLabel": "-"
},
View VBA.bas
Option Explicit
'Constants
Const V1METAURL = "/meta.v1"
Const V1RESTHISTURL = "/rest-1.v1/Hist"
Const V1RESTDATAURL = "/rest-1.v1/Data"
Const V1OAUTHHISTURL = "/rest-1.oauth.v1/Hist"
Const V1OAUTHDATAURL = "/rest-1.oauth.v1/Data"
Const V1LOCURL = "/loc.v1"
View OrYouCanGetWithThis.cs
public void CreateStoryWithConversation()
{
var v1 = V1Connector
.WithInstanceUrl(BaseUrl)
.WithUserAgentHeader("Sample", "0.0.0")
.WithUsernameAndPassword(UserName, Password);
var scope = "Scope:86271";
var name = $"Test Story {scope} Create story with conversation and mention";
View limit to N times.yaml
from: Epic
select:
- Name
- from-recursive[5]: Subs
select:
- Name
where:
Name: Denise Test Epic
View LotsOfAssets.json
[
{
"asset": "Scope",
"attributes": {
"Name": "My Project",
"Owner": "Member:20",
"Parent": "Scope:0",
"BeginDate": "7/15/2016 3:13:54 PM",
"Workitems": [
{
View AssetBatch.yaml
AssetType: Message
Name: My Test Message
Receipts:
- AssetType: MessageReceipt
Recipient: Member:20
---
AssetType: Message
Name: My Test Message
Receipts:
- AssetType: MessageReceipt
View Alternative approach with fluent queries.cs
var client = new VersionOneRestClient(V1_REST_API_URL, USERNAME, PASSWORD);
var results = client.Query("Story")
.Select("Name", "Status.Name", "AssetState", "IsDeleted")
.Where(
Or(
Equal("Name", "Story 1"),
NotEqual("AssetState", 64)
)
)
View Routes.text
// MvcCodeRouting v1.3.0
// Format: C# - Visual Basic
routes.MapRoute(null, "Areas/Roadmapping/Content/Images/{resourceName}",
new[] { "VersionOne.Web.Areas.Roadmapping.*" });
routes.MapRoute(null, "Areas/Roadmapping/Content/Styles/{resourceName}",
new[] { "VersionOne.Web.Areas.Roadmapping.*" });
routes.MapRoute(null, "Areas/Roadmapping/Content/Styles/images/{resourceName}",