Skip to content

Commit

Permalink
Reorganizing to better handle http endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
krobertson committed Apr 1, 2012
1 parent a53a999 commit f754b25
Show file tree
Hide file tree
Showing 29 changed files with 142 additions and 61 deletions.
16 changes: 16 additions & 0 deletions _config.yml
Expand Up @@ -16,6 +16,22 @@ pygments: true
## permalink style: http://wiki.github.com/mojombo/jekyll/permalinks
permalink: /:categories/:title

# category types
endpoint_categories:
- http-authentication
- http-info
- http-apps
- http-services
- http-users
nats_categories:
- cloud-controller
- dea
- health-manager
- router
- service-gateway
- service-node
- stager

# use maruku for markdown
markdown: maruku

Expand Down
25 changes: 20 additions & 5 deletions _layouts/default.haml
Expand Up @@ -34,19 +34,34 @@
{% assign current = 'active' %}
{% endif %}
<li class="{{current}}"><a href="/">Home</a>
{% for category in site.sorted_categories %}

<li class="nav-header">HTTP Endpoints</li>
{% for category in site.endpoint_categories %}
{% assign current = nil %}
{% assign class = "category" %}
{% if category == page.category_home %}
{% assign current = 'active' %}
{% endif %}
{% if category == page.category %}
{% assign current = 'active' %}
{% endif %}
<li class="{{class}} {{current}}"><a href="/{{category}}">{{ category | replace:'http-','' | replace:'-',' ' }}</a></li>
{% endfor %}

<li class="nav-header">NATS Messages</li>
{% for category in site.nats_categories %}
{% assign current = nil %}
{% assign class = "category" %}
{% if category.first == page.category_home %}
{% if category == page.category_home %}
{% assign current = 'active' %}
{% endif %}
{% if category.first == 'dea' %}
{% if category == 'dea' %}
{% assign class = 'short_category' %}
{% endif %}
{% if category.first == page.category %}
{% if category == page.category %}
{% assign current = 'active' %}
{% endif %}
<li class="{{class}} {{current}}"><a href="/{{category.first}}">{{ category.first | replace:'-',' ' }}</a></li>
<li class="{{class}} {{current}}"><a href="/{{category}}">{{ category | replace:'-',' ' }}</a></li>
{% endfor %}
</ul>
</div>
Expand Down
9 changes: 0 additions & 9 deletions _posts/http-api/0001-01-01-authentication.md

This file was deleted.

@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-apps
title: "DELETE /apps/{name}"
---

Expand All @@ -26,4 +26,4 @@ Deletes a provisioned service on the target cloud.

**Response**

None
None
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-apps
title: "GET /apps/{name}/crashes"
---

Expand Down Expand Up @@ -30,4 +30,4 @@ Returns information about application crashes on the target cloud.
{% highlight js %}
{% include snippets/http-api-get-apps-name-crashes-response.json %}
{% endhighlight %}
</div>
</div>
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-apps
title: "GET /apps/{name}/instances"
---

Expand Down Expand Up @@ -30,4 +30,4 @@ Returns information about application instances on the target cloud.
{% highlight js %}
{% include snippets/http-api-get-apps-name-instances-response.json %}
{% endhighlight %}
</div>
</div>
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-apps
title: "GET /apps/{name}/stats"
---

Expand Down Expand Up @@ -30,4 +30,4 @@ Returns information about application statistics on the target cloud.
{% highlight js %}
{% include snippets/http-api-get-apps-name-stats-response.json %}
{% endhighlight %}
</div>
</div>
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-apps
title: "GET /apps/{name}"
---

Expand Down Expand Up @@ -30,4 +30,4 @@ Returns basic information about an application deployed on the target cloud.
{% highlight js %}
{% include snippets/http-api-get-apps-name-response.json %}
{% endhighlight %}
</div>
</div>
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-apps
title: "GET /apps"
---

Expand Down
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-apps
title: "PUT /apps/{name}"
---

Expand Down Expand Up @@ -41,4 +41,4 @@ Updates an application at target cloud.

**Response**

None
None
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-info
title: "GET /info/runtimes"
---

Expand Down
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-info
title: "GET /info/services"
---

Expand Down
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-info
title: "GET /info"
---

Expand Down Expand Up @@ -40,4 +40,4 @@ If the user IS logged in:
{% highlight js %}
{% include snippets/http-api-get-info-logged-response.json %}
{% endhighlight %}
</div>
</div>
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-services
title: "DELETE /services/{alias}"
---

Expand Down
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-services
title: "GET /services/{alias}"
---

Expand Down
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-services
title: "GET /services"
---

Expand Down
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-services
title: "POST /services"
---

Expand Down Expand Up @@ -35,4 +35,4 @@ Creates a new provisioned service on the target cloud.

**Response**

None
None
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-users
title: "DELETE /users/{email}"
---

Expand All @@ -26,4 +26,4 @@ Deletes a user on the target cloud.

**Response**

None
None
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-users
title: "GET /users/{email}"
---

Expand Down
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-users
title: "GET /users"
---

Expand Down Expand Up @@ -30,4 +30,4 @@ None
{% highlight js %}
{% include snippets/http-api-get-users-response.json %}
{% endhighlight %}
</div>
</div>
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-users
title: "POST /users/{email}/tokens"
---

Expand Down Expand Up @@ -37,4 +37,4 @@ No
{% highlight js %}
{% include snippets/http-api-post-users-email-tokens-response.json %}
{% endhighlight %}
</div>
</div>
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-users
title: "POST /users"
---

Expand Down Expand Up @@ -33,4 +33,4 @@ No

**Response**

None
None
@@ -1,6 +1,6 @@
---
layout: post
category: http-api
category: http-users
title: "PUT /users/{email}"
---

Expand Down Expand Up @@ -33,4 +33,4 @@ Updates the user's password on the target cloud.

**Response**

None
None
14 changes: 0 additions & 14 deletions http-api.md

This file was deleted.

16 changes: 16 additions & 0 deletions http-apps.md
@@ -0,0 +1,16 @@
---
layout: category
title: Application APIs
category_home: http-apps
---

This API category covers the endpoints that are used to manage applications.

The HTTP APIs are the component that allows externals tools to manage the
infrastructure. It is implemented by the [Cloud Controller](/cloud-controller).

There are several client libraries to interact with the API:

* [Java](https://github.com/cloudfoundry/vcap-java-client)
* [Node.js](https://github.com/firebaseco/vcap-node-client)
* [Ruby](https://github.com/frodenas/cloudfoundry-client)
9 changes: 9 additions & 0 deletions http-authentication.md
@@ -0,0 +1,9 @@
---
layout: category
title: Authentication API
category_home: http-authentication
---

*TBD*

Documentation on this area has not been commenced.
16 changes: 16 additions & 0 deletions http-info.md
@@ -0,0 +1,16 @@
---
layout: category
title: Info APIs
category_home: http-info
---

This API category covers the endpoints that are used for basic information.

The HTTP APIs are the component that allows externals tools to manage the
infrastructure. It is implemented by the [Cloud Controller](/cloud-controller).

There are several client libraries to interact with the API:

* [Java](https://github.com/cloudfoundry/vcap-java-client)
* [Node.js](https://github.com/firebaseco/vcap-node-client)
* [Ruby](https://github.com/frodenas/cloudfoundry-client)

0 comments on commit f754b25

Please sign in to comment.