Book a Demo

Author Topic: Best Way to Document a RESTful WebService  (Read 4005 times)

LucB

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Best Way to Document a RESTful WebService
« on: October 26, 2011, 02:26:05 am »
Hi All,

I was looking to give a detailed documentation on a RESTful WebService to my development team. I see that it is possible for SOAP WebServices but I don't see anywhere how to describe a RESLful one.

Any suggestions on that would be extremely appreciated.

Thanks in advance,
Luc
« Last Edit: October 26, 2011, 04:55:49 am by lbard »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Best Way to Document a RESTful WebService
« Reply #1 on: October 26, 2011, 06:27:27 am »
How about a simple stereotype?

q.

LucB

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Best Way to Document a RESTful WebService
« Reply #2 on: October 26, 2011, 06:39:32 am »
Quote
How about a simple stereotype?

q.
Hi,

What do you mean by simple stereotype and what model are you suggesting?

Thanks very much for you answer.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Best Way to Document a RESTful WebService
« Reply #3 on: October 26, 2011, 08:57:44 am »
Maybe you should elaborate on what you mean with "describe a RESLful one".

If you want't to "describe" it, just attach a <RESTful> stereotype to the web service. If you want to show how it's modelled - this is a completely different story.

q.

LucB

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Best Way to Document a RESTful WebService
« Reply #4 on: October 26, 2011, 09:29:30 am »
Quote
Maybe you should elaborate on what you mean with "describe a RESLful one".

If you want't to "describe" it, just attach a <RESTful> stereotype to the web service. If you want to show how it's modelled - this is a completely different story.

q.

Yes that is what I want to do. What methods are exposed, what parameters should be passed and what is returned.

The WADL file of the WS does not go to that level of details.

For instance, for a POST method, I need a good description of the content,XML in this case, should be included in the body of the request.

Thanks,
Luc

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Best Way to Document a RESTful WebService
« Reply #5 on: October 26, 2011, 10:16:07 pm »
Well, I guess you will not have so much luck here with someone helping to model RESTful services. However, Google is your friend. There should be articles about that. This is nothing related to EA but UML in general.

q.

LucB

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Best Way to Document a RESTful WebService
« Reply #6 on: October 26, 2011, 11:45:51 pm »
Quote
Well, I guess you will not have so much luck here with someone helping to model RESTful services. However, Google is your friend. There should be articles about that. This is nothing related to EA but UML in general.

q.
I understand. At least you gave me good hints.

Thanks very much for your help.
Luc