[AC-4963] Getting 401 Error on default endpoints created by API Builder
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-05-15T09:08:07.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Arrow Builder |
Labels | api-builder, arrow |
Reporter | Brenton House |
Assignee | Shak Hossain |
Created | 2017-05-12T19:34:29.000+0000 |
Updated | 2017-05-15T09:08:08.000+0000 |
Description
Steps:
[~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 <APIKEY>:
, where APIKEY is what API Builder prints out on startup. You could also use a tool like Postman if you prefer Now, 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.Thanks [~eharris]!
Closing as wont fix based off my previous comment