Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Resource Group ? #331

Open
wwardaww opened this issue May 26, 2017 · 4 comments
Open

Multiple Resource Group ? #331

wwardaww opened this issue May 26, 2017 · 4 comments

Comments

@wwardaww
Copy link

How can i make multiple resource group ?

My .apib doc::

FORMAT: 1A

# Title

# GoogleAnalyticsController

## Create [POST /ga_site/create]
Create Ga_Site data

+ Parameters
    + access_token: (string, required) - access_token
    + site_id: (string, required) - site_id
    + name: (string, required) - name
    + user_name: (string, required) - user_name
    + account_id: (string, required) - account_id
    + site_link: (string, required) - site_link
    + property_id: (string, required) - property_id
    + site_access_token: (string, required) - site_access_token
    + master_user_id: (integer, required) - master_user_id
    + company_id: (integer, required) - company_id
    + currency: (string, required) - currency
    + time_zone: (string, required) - time_zone
    + token_problem_message: (integer, required) - token_problem_message
    + token_problem: (integer, required) - token_problem 

# UserController

## getCurrentUser [POST /api/user]
Returns current user

+ Parameters
    + access_token: (string, required) - User's OAuth2 Token

+ Response 200 (application/json)
    + Body

            [
                {
                    "id": 1,
                    "account_id": 1,
                    "name": "Ahmet Oğuz",
                    "surname": "Koruyucu",
                    "email": "aokoruyucu@gmail.com",
                    "is_active": 1,
                    "status": "a",
                    "created_at": "2017-04-04 11:34:04",
                    "updated_at": "2017-04-04 11:34:04"
                }
            ]

+ Response 500 (application/json)
    + Body

            {
                "error": {
                    "message": "The resource owner or authorization server denied the request.",
                    "status_code": 500
                }
            }

+ Response 500 (application/json)
    + Body

            {
                "error": {
                    "message": "No query results for model [App\\User].",
                    "status_code": 500
                }
            }

+ Response 404 (application/json)
    + Body

            {
                "error": {
                    "message": "Deleted User"
                }
            }

Result is :
output file

@mmaedler
Copy link

Same here — everything gets put into "Resource Group". When using snowboard to render html from the apib-file resources get identified correctly.

@arctican
Copy link

arctican commented Nov 8, 2017

This would be great

@mmaedler
Copy link

mmaedler commented Nov 8, 2017

For me prefixing the group with "Group" actually did the job.
So for @wwardaww example that would be writing
# Group UserController
instead of just
# UserController

@arctican
Copy link

arctican commented Nov 8, 2017

Excellent, that worked perfectly. Thanks @mmaedler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants