{ "id": "167597", "key": "AC-4963", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-05-15T09:08:07.000+0000", "created": "2017-05-12T19:34:29.000+0000", "labels": [ "api-builder", "arrow" ], "versions": [ { "id": "17038", "name": "Appcelerator Studio 4.5.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-15T09:08:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14555", "name": "Arrow Builder" } ], "description": "Steps:\r\n\r\n# appc new -t arrow arrow-test-3\r\n# cd arrow-test-3\r\n# appc run\r\n# open http://localhost:8080/api/greet\r\n\r\nExpected: JSON response\r\nActual: HTTP 401 Error\r\n\r\nThis is also happening with other endpoints.\r\nAnd, yes, I am an admin for organization\r\n\r\n", "attachment": [], "flagged": false, "summary": "Getting 401 Error on default endpoints created by API Builder ", "creator": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "environment": "Appcelerator CLI 6.2.1\r\nAPI Builder Tools 2.0.0", "comment": { "comments": [ { "id": "419635", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~brentonhouse], all API Builder APIs have security by default, so accessing the url in a browser like that wont work (by default), so in order to nteract with the APIs you can use curl (for the example Greet endpoint, {{curl http://localhost:8080/api/Greet?username=\"Brenton\" -u :}}, where APIKEY is what API Builder prints out on startup. You could also use a tool like Postman if you prefer\r\n\r\nNow, there is another option but that is only for autogenerated model APIs, and programmatic APIs (ones in /api folder) *for now*, you can use the API Builder Console to interact with your APIs, visit http://localhost:8080/console, and navigate to the API Docs & Test tab, here you can interact and try out your APIs from within the browser. This is not provided for the new Swagger defined endpoints added in 2.0.0, but it will be included in the next release, which should be soon.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-12T21:03:02.000+0000", "updated": "2017-05-12T21:03:02.000+0000" }, { "id": "419641", "author": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "body": "Thanks [~eharris]!", "updateAuthor": { "name": "brentonhouse", "key": "brentonhouse", "displayName": "Brenton House", "active": true, "timeZone": "America/Chicago" }, "created": "2017-05-12T21:27:35.000+0000", "updated": "2017-05-12T21:27:35.000+0000" }, { "id": "419663", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Closing as wont fix based off my previous comment", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2017-05-15T09:08:08.000+0000", "updated": "2017-05-15T09:08:08.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }